GetChildIndex(in HierarchyNode)
Gets the index of a hierarchy node in its parent's children list.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
GetChildIndex(HierarchyNode)
public int GetChildIndex(in HierarchyNode node)
Parameters
The hierarchy node.
Returns
Type | Description |
|---|---|
| int | The node index, or -1 if invalid. |