Documentation

Unity Engine

Unity Engine

GetChild(int)

Gets the child entity at the specified index.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public Entity GetChild(int index)

Parameters

index

The zero-based index of the child.

Returns

Type

Description

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