GetChild
7/14/25Less than 1 minute
Transform.GetChild(number index)
Returns a transform child by index.
Parameters:
| Name | Type | Description |
|---|---|---|
| index | number | Index of the child transform to return. Must be smaller than Transform.childCount. (integer) |
Returns:
| type | Description |
|---|---|
| Transform | Transform child by index. |
Usage
---@type Transform
local transform;
---@type number
local index;
local val0 = transform.GetChild(index)
