Skip to main content

Transform.GetChild(number index)

Returns a transform child by index.

Parameters:

NameTypeDescription
indexnumberIndex of the child transform to return. Must be smaller than Transform.childCount. (integer)

Returns:

typeDescription
TransformTransform child by index.

Usage

---@type Transform
local transform;

---@type number
local index;


local val0 = transform.GetChild(index)