GetNodeTypeHandler
Gets a HierarchyNodeTypeHandler instance from this hierarchy.
Read time 2 minutesLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyModule
GetNodeTypeHandler<T>(Hierarchy)
Gets a HierarchyNodeTypeHandler instance from this hierarchy.
public static T GetNodeTypeHandler<T>(this Hierarchy hierarchy) where T : HierarchyNodeTypeHandler
Parameters
Returns
Type | Description |
|---|---|
| T | The HierarchyNodeTypeHandler. |
Remarks
Use this method to retrieve a specific HierarchyNodeTypeHandler when you know the exact type at compile time.
GetNodeTypeHandler(Hierarchy, HierarchyNode)
Gets the HierarchyNodeTypeHandler instance for the specified node from this hierarchy.
public static HierarchyNodeTypeHandler GetNodeTypeHandler(this Hierarchy hierarchy, in HierarchyNode node)
Parameters
The Hierarchy to get the HierarchyNodeTypeHandler from.
The HierarchyNode to get the HierarchyNodeTypeHandler for.
Returns
Type | Description |
|---|---|
| HierarchyNodeTypeHandler | The HierarchyNodeTypeHandler. |
Remarks
Use this method to retrieve a specific HierarchyNodeTypeHandler instance from a specific HierarchyNode.
GetNodeTypeHandler(HierarchyViewModel, HierarchyNode)
Get the node type handler instance for the specified node from this hierarchy.
public static HierarchyNodeTypeHandler GetNodeTypeHandler(this HierarchyViewModel hierarchyViewModel, in HierarchyNode node)
Parameters
Returns
Type | Description |
|---|---|
| HierarchyNodeTypeHandler | The hierarchy node type handler. |
GetNodeTypeHandler(Hierarchy, string)
Gets the HierarchyNodeTypeHandler instance for the specified node type name from this hierarchy.
public static HierarchyNodeTypeHandler GetNodeTypeHandler(this Hierarchy hierarchy, string nodeTypeName)
Parameters
The Hierarchy to get the HierarchyNodeTypeHandler from.
The node type name to get the HierarchyNodeTypeHandler for.
Returns
Type | Description |
|---|---|
| HierarchyNodeTypeHandler | The HierarchyNodeTypeHandler. |
Remarks
Use this method to retrieve a specific HierarchyNodeTypeHandler instance from a node type name.