Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GetChild(index: int): Transform;
Transform GetChild(int index);
def GetChild(index as int) as Transform

Parameters

indexIndex of the child transform to return. Must be smaller then Transform.childCount.

Description

Returns a transform child by index.