Writes a property even when the engine marks it non-scriptable, and returns true when the property it wrote was a hidden one. The value must match the property’s type; a mismatch is rejected rather than silently coerced.

Parameters

Instance
required
The instance to write to.
string
required
The property name.
any
required
The value to assign.

Returns

boolean
true if the written property was hidden.

Example

Errors