Abstract Public SelfCreates a new inspectable field UI for the specified property.
Context shared by all inspectable fields created by the same parent.
Name of the property, or some other value to set as the title.
Full path to this property (includes name of this property and all parent properties).
Type of property this field will be used for displaying.
Determines how deep within the inspector nesting hierarchy is this field. Some fields may contain other fields, in which case you should increase this value by one.
Parent layout that all the field elements will be added to.
Serializable property referencing the array whose contents to display.
Protected_activeProtected Readonly_contextProtected Readonly_depthProtected_disabledProtected Readonly_formProtected Readonly_inspectorProtected_isProtected Readonly_nameProtected Readonly_pathProtected_propertyProtected Readonly_propertyProtected Readonly_titleFinishes recording an undo command started via startUndoForPath. If any changes are detected on the field an undo command is recorded onto the undo-redo stack, otherwise nothing is done.
Zero parameter wrapper for startUndoForPath
Notifies the system to start recording a new undo command. Any changes to the field after this is called
will be recorded in the command. User must call endUndo after field is done being changed.
OptionalsubPath: stringOptional path to append to the end of the current field path.
Gets the InspectorFieldContainer that owns this field.
Information that can be used for customizing field rendering and behaviour.
Gets the depth of the field.
Gets the layout of the field.
Activates or deactivates the underlying UI elements.
Disables or enables the underlying UI elements. Disabled elements cannot be interacted with and have a faded out appearance.
Determines if the field is in focused state.
Disables or enables the underlying UI elements. Disabled elements cannot be interacted with and have a faded out appearance.
Name portion of the field path.
Returns the path to the field.
Property this field is displaying contents of.
VirtualSearches for a child field with the specified path.
Path relative to the current field. Path entries are field names separated with /.
Fields within categories are placed within a special category group, surrounded by [].
Examples:
- myField
- myObject/myField
- myObject/[myCategory]/myField
Matching field if one is found, null otherwise.
AbstractinitializeVirtualChecks if contents of the field have been modified, and updates them if needed.
Optionalflags: EnumValue<InspectableRefreshFlag, number>Flags that determine the refresh behavior that the field should have.
State representing was anything modified between two last calls to refresh.
Assigns the field value to the underlying property and creates an undo operation.
StaticcreateCreates a new inspectable field, automatically detecting the most appropriate implementation for the type
contained in the provided serializable property. This may be one of the built-in inspectable field implemetations
(like ones for primitives like int or bool), or a user defined implementation defined with a
CustomInspectorAttribute attribute.
Context shared by all inspectable fields created by the same parent.
Name of the property, or some other value to set as the title.
Full path to this property (includes name of this property and all parent properties).
Index into the parent layout at which to insert the UI elements for the field .
Determines how deep within the inspector nesting hierarchy is this field. Some fields may contain other fields, in which case you should increase this value by one.
Parent layout that all the field elements will be added to.
Serializable property referencing the array whose contents to display.
Optionalparent: InspectorFieldContainerOptionalfnGetParentFieldConditionals: (() => InspectorFieldConditionalInfo[])Inspectable field that can be used for displaying the UI for an InspectableProperty of the provided type.
StaticfindSearches for a field with the specified path.
Path to search for. Path entries are readable field names separated with /.
Fields within categories are placed within a special category group, surrounded by [].
Examples:
- myField
- myObject/myField
- myObject/[myCategory]/myField
Path depth at which the provided set of fields is at.
List of fields to search. Children will be searched recursively.
Matching field if one is found, null otherwise.
StaticgetStaticupdateA helper function that takes a state by reference. If the state has
InspectableState.Modified set, the state is set to InspectableState.NotModified.
Returns an object of the oldState (before modifying it) and the newState that should
be set on the field.
This method should usually be used as such:
The current state of the field.
An object of the old state of the field and the new state that it should be set to.
The InspectorFieldBase displays UI elements for a single InspectableProperty. This is a base class that should be specialized for all supported types contained by InspectableProperty. Inspectable fields can and should be created recursively - normally complex types like objects and arrays will contain fields of their own, while primitive types like integer or boolean will consist of only a UI element.