Version: Unity 6.5 Beta (6000.5)
LanguageEnglish
  • C#

HierarchyExtensions.GetNodeTypeHandler

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

Declaration

public static T GetNodeTypeHandler(Hierarchy hierarchy);

Returns

T The HierarchyNodeTypeHandler.

Description

Gets a HierarchyNodeTypeHandler instance from this hierarchy.

Use this method to retrieve a specific HierarchyNodeTypeHandler when you know the exact type at compile time.


Declaration

public static HierarchyNodeTypeHandler GetNodeTypeHandler(Hierarchy hierarchy, ref HierarchyNode node);

Parameters

Parameter Description
hierarchy The Hierarchy.Hierarchy to get the HierarchyNodeTypeHandler from.
node The Hierarchy.HierarchyNode to get the HierarchyNodeTypeHandler for.

Returns

HierarchyNodeTypeHandler The HierarchyNodeTypeHandler.

Description

Gets the HierarchyNodeTypeHandler instance for the specified node from this hierarchy.

Use this method to retrieve a specific HierarchyNodeTypeHandler instance from a specific Hierarchy.HierarchyNode.


Declaration

public static HierarchyNodeTypeHandler GetNodeTypeHandler(HierarchyViewModel hierarchyViewModel, ref HierarchyNode node);

Parameters

Parameter Description
hierarchyViewModel The hierarchy view model.
node The hierarchy node.

Returns

HierarchyNodeTypeHandler The hierarchy node the handler.

Description

Get the node type handler instance for the specified node from this hierarchy.


Declaration

public static HierarchyNodeTypeHandler GetNodeTypeHandler(Hierarchy hierarchy, string nodeTypeName);

Parameters

Parameter Description
hierarchy The Hierarchy.Hierarchy to get the HierarchyNodeTypeHandler from.
nodeTypeName The node type name to get the HierarchyNodeTypeHandler for.

Returns

HierarchyNodeTypeHandler The HierarchyNodeTypeHandler.

Description

Gets the HierarchyNodeTypeHandler instance for the specified node type name from this hierarchy.

Use this method to retrieve a specific HierarchyNodeTypeHandler instance from a node type name.