Skip to main content
تخزن scriptable override لخاصية Roblox property في scriptable override cache وترجع previous scriptable state. يجب أن يكون الوسيط الأول Instance object، والثاني string property name، والثالث boolean. إذا كان cache entry موجودا مسبقا لنفس instance reference و property name، يتم استبدال cached scriptable value وترجع function القيمة القديمة من cache. عند cache miss، يتم حل property name عبر Roblox property metadata و Instance class descriptor. إذا لم يوجد descriptor، أو كان field المحلول مفقودا أو ليس property entry، ترجع function nil. عندما يتم العثور على property entry، تقرأ function قيمة scriptable state، وتخزن boolean المطلوب مع property reference في scriptable override cache، ثم ترجع previous scriptable state value. يستخدم GameIndexHook و GameNewIndexHook هذا cache لاحقا عبر ضبط property field scriptable flag مؤقتا لقراءة أو كتابة indexed واحدة، ثم استعادة previous field flag.

الصيغة

الوسائط

القيم الراجعة

مثال

Temporarily change whether a property is scriptable, then restore the previous state when available.