Skip to main content

参数

Instance
必填
作为 scriptable override cache key 一部分使用的 Instance object。
string
必填
cache miss 时通过 Roblox property metadata 和 Instance class descriptor 解析的 property name。
boolean
必填
要存入 scriptable override cache 的 scriptable override value。

返回值

boolean | nil
Previous cached scriptable value、previous scriptable state value,或 property 无法解析为 property entry 时的 nil。

示例

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