class in Unity.Hierarchy
/
Inherits from:Unity.Hierarchy.HierarchyNodeTypeHandlerBase
Provides a base class for hierarchy node type handlers that manage how specific node types are displayed and interact with HierarchyView instances.
| Method | Description |
|---|---|
| OnBindItem | Called whenever a HierarchyViewItem is bound to a HierarchyView. Typically used to set up the item with the necessary data and styles. |
| OnBindView | Called when the HierarchyNodeTypeHandler is bound to a HierarchyView. |
| OnUnbindItem | Called whenever a HierarchyViewItem is unbound from a HierarchyView. |
| OnUnbindView | Called when the HierarchyNodeTypeHandler is unbound from a HierarchyView. |
| Property | Description |
|---|---|
| CommandList | Get the HierarchyCommandList associated with this handler. |
| Hierarchy | Get the Hierarchy owning this handler. |
| Method | Description |
|---|---|
| Dispose | Disposes this hierarchy node type handler to free up resources in the derived class. |
| GetDefaultNodeFlags | Get the default value used to initialize a hierarchy node flags. |
| GetEntityIdFromNode | Gets the EntityId corresponding to the given HierarchyNode. |
| GetEntityIdsFromNodes | Gets the EntityId corresponding to each HierarchyNode in . Slots already set to a non-EntityId.None value must be skipped. |
| GetNodeFromEntityId | Gets the HierarchyNode corresponding to the given EntityId. |
| GetNodeHashCode | Gets the hash code for the specified hierarchy node. |
| GetNodesFromEntityIds | Gets the HierarchyNode corresponding to each EntityId in . Slots already set to a non-null value must be skipped. |
| GetNodeType | Retrieves the hierarchy node type for this hierarchy node type handler. |
| GetNodeTypeName | Get the type name of this hierarchy node type handler. |
| ReadUIDs | Restores nodes from the identifiers written by HierarchyNodeTypeHandlerBase.WriteUIDs. is pre-initialized to HierarchyNode.Null; write only slots that resolve to a live node. |
| SearchMatch | Determines if a node matches the search query. |
| Method | Description |
|---|---|
| GetUIDInfo | Returns the UID serialization info for this handler. A HierarchyUIDInfo.Size of 0 means this handler does not support UID serialization and its nodes will be skipped. UID serialization is used in Hierarchy view state serialization and Undo/Redo operations. |
| Initialize | Initializes this hierarchy node type handler. |
| SearchBegin | Called when a new search query begins. |
| SearchEnd | Called when a search query ends. |
| SetSearchAlwaysVisible | Sets whether nodes of this type should always be visible during search when descendants match. |
| UndoRedoSupported | Determines whether this hierarchy node type handler supports undo/redo operations. When doing certain operations that modify the hierarchy, for example reordering nodes with mixed-types, the hierarchy needs to know if the involved node type handlers support undo/redo in order to determine whether to create an undo operation for the changes specific to the hierarchy. Return true if this node type handler has underlying data that supports undo/redo. Return false if this node type handler has underlying data that does not support undo/redo. |
| UpdateBegin | Called when the hierarchy update begins. |
| UpdateEnd | Called when the hierarchy update ends. |
| ViewModelPostSetState | Called after the HierarchyViewModel finishes setting its state. |
| ViewModelPostUpdate | Called after the HierarchyViewModel finishes being updated. |
| WriteUIDs | Serializes stable identifiers for the given nodes into . The buffer is pre-zeroed; write only slots that have a valid identity. Unwritten slots are treated as unresolvable during restore. |