Creates a new serializable property.
Method that allows you to retrieve contents of the property.
Method that allows you to set contents of the property
A class that determines how the property should be displayed on the UI.
OptionalreassignOnChildChanges: booleanOnly relevant if the property represents an object. When true, whenever a child property changes value, this property's setter will be called with the new modified version of the object. This is useful for value-types, for reference types being passed by copy, or for situations where changes to an object must be explicitly applied by re-assigning the object.
ReadonlydecorationDetermines the decoration of the inspectable property.
ReadonlyinternalIf the InternalType is an array type, this will contain the type of the elements in that array. It will contain null if InternalType is not an array type or if the element type was not specified or deduced.
ReadonlyinternalReturns type of data the property contains, as TypeScript type.
Determines if the field value was changed recently.
ReadonlyreassignOnly relevant if the property represents an object. When true, whenever a child property changes value, this property's setter will be called with the new modified version of the object. This is useful for value-types, for reference types being passed by copy, or for situations where changes to an object must be explicitly applied by re-assigning the object.
ReadonlytypeReturns type of data the property contains.
Determines if the property itself is readonly, independent of parent states.
Creates a new instance of the array wrapped by this property. Caller must ensure this property contains an array.
Size of each dimension of the array. Number of dimensions must match the number of dimensions in the array wrapped by this property.
A new array containing the same element type as the array wrapped by this property, of
lengths sizes.
Helper method used for finding child properties of the specified property, using a property path.
InspectableObject.findProperty.
Path elements representing field names and keys to look for.
Index in the pathElements array to start the search at.
Property representing the final path element, or null if not found (array index is out of range, or property with that path doesn't exist).
Retrieves the value contained in the property.
Value of the property.
Retrieves the value contained in the property.
Value of the property.
Changes the value of the property.
New value to assign to the property.
Changes the value of the property.
New value to assign to the property.
Returns a serializable array around the value contained in the property. Caller must ensure the property contains an array.
Serializable array around the value contained in the property.
Returns a serializable map around the value contained in the property. Caller must ensure the property contains a map.
Serializable map around the value contained in the property.
Returns a serializable object wrapper around the value contained in the property.
Serializable object wrapper around the value contained in the property.
StaticcreateCreates a serializable property with a custom getter and setter callbacks.
Callback that returns the current value of the property.
Callback that assigns a new value to the properly.
Optionalstyle: InspectablePropertyDecorationOptionalapplyOnChildChanges: booleanNew property instance with the specified callbacks.
StaticcreateReturns a serializable property for the field.
The field to create a new property from.
Serializable property that allows you to manipulate contents of the field.
StaticdetermineConverts a TypeScript type into internal serialization type.
TypeScript to convert.
Internal serialization type. Throws an exception if matching type cannot be found.
The InspectableProperty provides access to the value and meta-data of a TypeScript field. The primary use-case for this class is type reflection within the Inspector APIs. The InspectableProperty wraps other inspectable types such as InspectableArray and InspectableMap.