Answers for "unity how to get a child from a gameobject"

C#
2

how to get an child of an gameobject

// By Name
GameObject Child = GameObjectsTransform.Find("NameOfChild").gameObject

// By index
GameObject Child = GameObjectsTransform.GetChild(The child index).gameObject
Posted by: Guest on October-30-2020
8

unity how to get a child from a gameobject

//For unity engine
GameObject.transform.GetChild(The child index).transform;
Posted by: Guest on March-31-2020

Code answers related to "unity how to get a child from a gameobject"

C# Answers by Framework

Browse Popular Code Answers by Language