Answers for "how to get an child of an 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
11

unity get child

GameObject Child;
Child = transform.GetChild(0).gameObject;
Posted by: Guest on February-21-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 "how to get an child of an gameobject"

C# Answers by Framework

Browse Popular Code Answers by Language