Abstract Public SelfThe inspector control type (UIElement that will control the property)
The inspector field value type
Creates a new inspectable field.
The field type
The control to be rendered in the field
If true, will display a label with the field
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).
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 field whose contents to display.
Protected_activeProtected Readonly_contextProtected Readonly_depthProtected_disabledProtected Readonly_formProtected Readonly_inspectorProtected_isProtected_isProtected Readonly_nameProtected Readonly_pathProtected_propertyProtected Readonly_propertyProtected Readonly_titleProtected Readonly_typeReadonlycontrolThe control to be displayed for the field. Can be any UIElement, but a UIControl is preferred.
ReadonlycustomAll custom elements added through CustomInspectorElementAttribute on the field.
Finishes 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.
ProtectedonTriggered when the user inputs a new value.
New value of the float field.
ProtectedonTriggered when the user inputs a new value. Sets the property as immediately changed.
New value of the float field.
ProtectedonTriggered when the user confirms input in the field.
ProtectedonTriggered when the user confirms input in the field.
ProtectedonTriggered when the user has finished interacting with the field but has not confirmed the change yet.
ProtectedonResets the field to it's default value.
ReadonlyresetA button that is shown when the property is not at it's default value. Clicking it reverts the value to the default.
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.
The inspectable field modification state.
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 currently focused.
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.
ProtectedcommitCommits the newValue to the inspectable property.
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.
VirtualChecks if two values of the inspected field are equal. By default, this method
uses isEqual to check for equality - if implemented. Complex fields can override
this method and offer an alternative comparison method.
The left hand-side operand.
The right hand-side operand.
True if the two values are equivalent.
VirtualChecks 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.
AbstractrefreshNotifies the inspector field that it's contents have been modified.
The updated value, to update UI controls
A set of flags that determine the field refreshing behavior.
Assigns the field value to the underlying property and creates an undo operation.
ProtectedupdateProtectedupdateUpdates all accessory elements of this field for the currentValue.
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 InspectorField class implements a simplified InspectorFieldBase that provides convenient APIs to quickly create a new field inspector based on an underlying UIElementBase control instance.