Search Unity

Help me!

Discussion in 'Scripting' started by Noah-Cristino, Oct 1, 2015.

  1. Noah-Cristino

    Noah-Cristino

    Joined:
    May 25, 2015
    Posts:
    24
    Code (CSharp):
    1. public GameObject lol;
    I need to get the one child of lol and get the name. I can't use the name of the child because it changes. The child is a gameobject. Please help :(
     
  2. Noah-Cristino

    Noah-Cristino

    Joined:
    May 25, 2015
    Posts:
    24
  3. Noah-Cristino

    Noah-Cristino

    Joined:
    May 25, 2015
    Posts:
    24
    bump again -_-
     
  4. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,498
    Code (csharp):
    1. lolChild = lol.transform.GetChild(0);
    Do not bump your threads so frequently.
     
    Kiwasi and Noah-Cristino like this.
  5. Noah-Cristino

    Noah-Cristino

    Joined:
    May 25, 2015
    Posts:
    24