Answers for "unity c# gameobject child"

C#
3

how to reference a child object unity

private void Start()
    {
        parentObject = GameObject.Find("Parent");// The name of the parent object
        childObject = parentObject.transform.GetChild(0).gameObject; // the parent index (starting from 0)
    }
Posted by: Guest on July-03-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 c# gameobject child"

C# Answers by Framework

Browse Popular Code Answers by Language