GetParent()
Gets the parent entity of this transform.
阅读时间1 分钟最后更新于 20 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public Entity GetParent()
Returns
Type | Description |
|---|---|
| Entity | The parent Entity, or Entity.Null if no parent exists. |
Remarks
Returns Entity.Null if this transform is a root transform or is not currently part of a hierarchy.