Interface IInspector<T>
Allows to declare a type as custom inspector for the specified type.
Namespace: Unity.Properties.Editor
Syntax
public interface IInspector<T>
Type Parameters
Name | Description |
---|---|
T |
Methods
Build(InspectorContext<T>)
Called whenever the UI needs to be rebuilt.
Declaration
VisualElement Build(InspectorContext<T> context)
Parameters
Type | Name | Description |
---|---|---|
InspectorContext<T> | context | Context object for the inspector. |
Returns
Type | Description |
---|---|
VisualElement | The root visual element to use for the inspection. |
Update(InspectorContext<T>)
Called whenever the underlying data changed, so the custom inspector can update it's data.
Declaration
void Update(InspectorContext<T> context)
Parameters
Type | Name | Description |
---|---|---|
InspectorContext<T> | context | Context object for the inspector. |