文档

Unity Engine

Download Unity

Unity Engine

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

EntityThe 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.