Skip to main content

参数

Instance
必填
要检查 property scriptable state 的 Instance object。
string
必填
通过 Roblox property metadata 和 Instance class descriptor 解析的 property name。

返回值

boolean | nil
cached 或当前的 scriptable state 值;如果 property descriptor/field 缺失或不是 property entry,则为 nil。

示例

Check whether a property is scriptable on an Instance.