Flips a property’s scriptable flag and returns what it was before. Making a hidden property scriptable lets you read and write it with ordinary indexing for the rest of the session, so it is a persistent counterpart to gethiddenproperty.

Parameters

Instance
required
The instance to change.
string
required
The property name.
boolean
required
true to make it scriptable.

Returns

boolean
The flag’s previous value.

Example

Errors