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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Need help with the UI buttons

Discussion in '2D' started by Loud_Lasagna, Dec 11, 2019.

  1. Loud_Lasagna

    Loud_Lasagna

    Joined:
    Oct 24, 2019
    Posts:
    26
    I have a Main Menu scene in which the buttons work fine on both the computer and unity remote, but when trying to attach the buttons to the GUI canvas, then nothing works, despite the fact that the "interactable" field is enabled
     
  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    @Loud_Lasagna

    "Need help with the UI buttons"

    Then why wouldn't you ask this in UI / uGUI area instead? I guess not that many UI people read this area...

    Besides, your question is so vague, what have you done?

    How have you setup your UI?

    Do you have event system in Scene?

    Do you have overlapping UI elements that could block the buttons from getting clicks?

    Now everyone has to just guess.

    "but when trying to attach the buttons to the GUI canvas, then nothing works..."

    This doesn't make any sense. AFAIK all UI elements have to be parented under Canvas, otherwise they won't work or render.
     
    MisterSkitz and Loud_Lasagna like this.
  3. Loud_Lasagna

    Loud_Lasagna

    Joined:
    Oct 24, 2019
    Posts:
    26
    I'm sorry I made so many mistakes, but you just told me my problem: i have messed up the GUI canvas right at the beginning
     
    Last edited: Dec 11, 2019
    eses likes this.
  4. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    @Loud_Lasagna

    Well - if my help solved your issue, why not press that like button? :)