GetChildCount()
Gets the number of direct children of this transform.
阅读时间1 分钟最后更新于 20 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public int GetChildCount()
Returns
Type | Description |
|---|---|
| int | The number of direct children. |
Remarks
Returns 0 if this transform is not currently part of a hierarchy.