Hi
I have a Character GameObject, and i want to get one of it’s Child GameObject that is called “Top” and save it as a variable. How can i get it with code? I searched the Scripting Reference and i didn’t find anything.
Note that these return the Transform of the child, so to assign it to a GameObject variable you’ll have to do something like
GameObject top = transform.Find(“Top”).gameObject;
1 Like