Horje
how to reference a child object unity Code Example
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)
    }




Csharp

Related
exit a method c# Code Example exit a method c# Code Example
unity deactivate all colliders of a gameobject Code Example unity deactivate all colliders of a gameobject Code Example
c# how to exit program Code Example c# how to exit program Code Example
find the max number in an array c# Code Example find the max number in an array c# Code Example
c# textbox get focus Code Example c# textbox get focus Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9