Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Where is the code documentation/examples for the new uGUI?

Discussion in 'UGUI & TextMesh Pro' started by TheLurkingDev, Sep 2, 2014.

  1. TheLurkingDev

    TheLurkingDev

    Joined:
    Nov 16, 2009
    Posts:
    91
    I must be missing it somewhere. So far I can't even establish a reference to a control in the canvas... lol.
     
  2. Kylotan

    Kylotan

    Joined:
    Feb 17, 2011
    Posts:
    212
    Help > Unity Manual > UI (on left hand side)
    Or
    Help > Scripting Reference > type component (eg. RectTransform) in the search box.

    There are also a bunch of videos here, which it's important to watch. No screenshots or transcripts, sadly.
    http://unity3d.com/learn/tutorials/modules/beginner/ui
     
  3. TheLurkingDev

    TheLurkingDev

    Joined:
    Nov 16, 2009
    Posts:
    91
    Thanks, but what I was missing was the using statement that needed to be added referencing UnityEngine.UI. Not sure where I missed that at but I am just now figuring it out.

    And now that I have that... I am still having trouble referencing a panel. I am now trying to establish what class a Panel is represented by using the autocomplete in the editor because I have found no mention of it in the docs.
     
  4. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,870
    If you look at the Panel GameObject you can see that there's no Panel component. It's just a RectTransform with an Image component on it.
     
    TheLurkingDev likes this.
  5. TheLurkingDev

    TheLurkingDev

    Joined:
    Nov 16, 2009
    Posts:
    91
    Thank you!