Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Controller being "disabled" in UI Menu

Discussion in 'UGUI & TextMesh Pro' started by Flameeater, Dec 24, 2023.

  1. Flameeater

    Flameeater

    Joined:
    Mar 30, 2022
    Posts:
    43
    Hello all,
    I am sure this is probably something simple I have overlooked, and I tried to search it myself but as is usual with me I am probably not using the correct terminology. Apologies in advance if this has been covered and answered. If someone could just point me to the answer I would greatly appreciate it. :)

    I have a menu system for combat, and I wanted to implement a "cancel" button so the player could just hit the button and go back to the previous menu. Simple enough. I have it actually working as I would intend, except one unintended behavior is that whenever the player hits this button the controller no longer works for menu navigation. Any ideas where to look for issue??

    Screen snips below to help visualize my poor explanations :)

    Navigation working with correct button selected...
    upload_2023-12-23_23-24-5.png

    What I expect after hitting cancel button (character button highlighted and I can navigate amongst them)...
    upload_2023-12-23_23-25-25.png

    What I actually get after hitting the cancel button (character button not highlighted and I can not navigate amongst them)... The correct panel however is the current selection.
    upload_2023-12-23_23-28-57.png
     
  2. Flameeater

    Flameeater

    Joined:
    Mar 30, 2022
    Posts:
    43
    Issue solved, I am... Careless LOL, and apparently very myopic. The issue is that I had forgotten that I had overlayed an invisible button over the panel. As you will see in the above posts the the "correct" button and "incorrect" button are not the same (One would think I would have found this to be a clue of some description).

    Oh well... I am sure there is a lesson to be learned here... I am just slightly too embarrassed to know what it is Haha. :oops: