Wiki

Case Status
Log In

Wiki

 
Home ยป Action Reference»GameObject Actions»Get Child Num
Index
Navigation
Community Wiki

Get Child Num

Gets the child of a game object by index and store it in a GameObject variable for later use.

The index starts at 0: 0 to get the first child, 1 to get the second etc.

HINT: Use this with an integer variable to iterate through the children of a game object.

Game Object
The game object to search.
Child Index
The index of the child (0 = first child).
Store
Store the result in a variable.

 

Examples

Destroy a random child picked from a range (0-5):

 

See Also


Last modified on 12/10/2019 11:01 AM by User.

  • RSS Feed