Answers for "access child of child unity"

C#
8

unity access child

// To acces a child of a gameObject use the combination below
parentGameObject.transform.GetChild(0).gameObject
Posted by: Guest on February-20-2020
0

unity get child

GameObject originalGameObject = GameObject.Find("MainObj");
GameObject child = originalGameObject.transform.GetChild(0).gameObject;
Posted by: Guest on March-24-2022

C# Answers by Framework

Browse Popular Code Answers by Language