GetChild(int)
Gets the child entity at the specified index.
阅读时间1 分钟最后更新于 20 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public Entity GetChild(int index)
Parameters
The zero-based index of the child.
Returns
Type | Description |
|---|---|
| Entity | The child Entity, or Entity.Null if invalid. |
Remarks
Returns Entity.Null if the index is out of bounds or this transform is not part of a hierarchy.