Answers for "unity c# get child of gameobject.find"

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
9

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

C# Answers by Framework

Browse Popular Code Answers by Language