Documentation

Unity Engine

Unity Engine

GetParent()

Gets the parent entity of this transform.
Read time 1 minuteLast updated 6 days ago

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.