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

EventSystem - First selected.

Discussion in 'UGUI & TextMesh Pro' started by screenname_taken, Nov 28, 2014.

  1. screenname_taken

    screenname_taken

    Joined:
    Apr 8, 2013
    Posts:
    663
    Is there a way to assign something else to it from code?
    I need that as i'm changing the menu layout depending on the control mode.
    Plus, am i able to tell the EventSystem to go to the next element on the menu through code?
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,181
    Oversight. Added api for this for p2.

    You can call this function with your 'next' gameobject.
    public void SetSelectedGameObject(GameObject selected)
     
  3. screenname_taken

    screenname_taken

    Joined:
    Apr 8, 2013
    Posts:
    663
    3rd time i'm finding and reporting something. I want a pro license :p