ドキュメント

Unity Engine

Download Unity

Unity Engine

GetOrCreateNode

Gets or creates the HierarchyNode that corresponds to the specified GameObject EntityId.
読み終わるまでの所要時間 1 分最終更新 3時間前

Definition

GetOrCreateNode(EntityId)

Gets or creates the HierarchyNode that corresponds to the specified GameObjectEntityId.
public HierarchyNode GetOrCreateNode(EntityId entityId)

Parameters

entityId

The EntityId of the GameObject to get the HierarchyNode for.

Returns

Type

Description

HierarchyNodeThe HierarchyNode that corresponds to the specified EntityId.

Remarks

If the node doesn't exist, this method returns a node that represents the GameObject but that doesn't yet exist in the hierarchy. To query the Hierarchy about this node, update the hierarchy first.

GetOrCreateNode(GameObject)

Gets or creates the HierarchyNode that corresponds to the specified GameObject.
public HierarchyNode GetOrCreateNode(GameObject gameObject)

Parameters

gameObject

The GameObject to get the HierarchyNode for.

Returns

Type

Description

HierarchyNodeThe HierarchyNode that corresponds to the specified GameObject.

Remarks

If the node doesn't exist, this method returns a node that represents the GameObject but that doesn't yet exist in the Hierarchy. To query the Hierarchy about this node, update the hierarchy first.