GetOrCreateNode
Gets or creates the HierarchyNode for the subscene with the specified EntityId.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy.Editor
- Assembly: UnityEditor
GetOrCreateNode(EntityId)
Gets or creates the HierarchyNode for the subscene with the specified EntityId.
public HierarchyNode GetOrCreateNode(EntityId entityId)
Parameters
Returns
Type | Description |
|---|---|
| HierarchyNode | The HierarchyNode for the specified subscene. |
Remarks
If the node doesn't exist yet, this method returns a future node that will be used for the scene. Update the Hierarchy before you query it about this node.
GetOrCreateNode(GameObject)
Gets or creates the HierarchyNode for the subscene represented by the specified GameObject.
public HierarchyNode GetOrCreateNode(GameObject gameObject)
Parameters
The GameObject that represents the subscene.
Returns
Type | Description |
|---|---|
| HierarchyNode | The HierarchyNode for the specified subscene, or HierarchyNode.Null if the GameObject is null. |
Remarks
If the node doesn't exist yet, this method returns a future node that will be used for the scene. Update the Hierarchy before you query it about this node.
GetOrCreateNode(Scene)
Gets or creates the HierarchyNode for the specified subscene.
public HierarchyNode GetOrCreateNode(Scene scene)
Parameters
Returns
Type | Description |
|---|---|
| HierarchyNode | The HierarchyNode for the specified subscene. |
Remarks
If the node doesn't exist yet, this method returns a future node that will be used for the scene. Update the Hierarchy before you query it about this node.