Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

HierarchyGameObjectHandler

class in Unity.Hierarchy.Editor

/

Inherits from:Unity.Hierarchy.HierarchyNodeTypeHandler

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Provides a hierarchy node type handler for GameObject instances in a HierarchyView.

Public Methods

Method Description
GetEntityId Gets the EntityId of the GameObject that corresponds to the specified HierarchyNode.
GetGameObject Gets the GameObject that corresponds to the specified HierarchyNode.
GetNodeType Gets the HierarchyNodeType for this HierarchyGameObjectHandler.
GetOrCreateNode Gets or creates the HierarchyNode that corresponds to the specified GameObjectEntityId.

Inherited Members

Properties

PropertyDescription
CommandList Get the HierarchyCommandList associated with this handler.
Hierarchy Get the Hierarchy owning this handler.

Public Methods

MethodDescription
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.
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.

Protected Methods

MethodDescription
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.
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.
Initialize Initializes this hierarchy node type handler.
SearchBegin Called when a new search query begins.
SearchEnd Called when a search query ends.
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.