Friday, December 22, 2017

Unity: Access child of a gameobject

GameObject ChildGameObject = ParentGameObject.transform.GetChild(i).gameObject;

where i is the index of the child transform.

No comments:

Post a Comment