Answers for "how to get the gameobject component which is the child of the object"

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

Code answers related to "how to get the gameobject component which is the child of the object"

C# Answers by Framework

Browse Popular Code Answers by Language