FredG
0
Q:

how to choose a random child in a gameobject unuity

public GameObject YourGameObject;

int randomChildIdx = Math.Random(0, YourGameObject.transform.childCount);
Transform randomChild = YourGameObject.transform.GetChild(randomChildIdx);
0

New to Communities?

Join the community