Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Quick way to NOT have selectables "selected" on pointer click?

Discussion in 'Unity UI & TextMesh Pro' started by Democide, Jan 11, 2019.

  1. Democide

    Democide

    Joined:
    Jan 29, 2013
    Posts:
    274
    Using the Unity UI system, if you click on a selectable (like a button etc.) then you trigger it's effect, but also the button becomes selected afterwards. Selected as in highlighted for keyboard/controller-based navigation. This annoys me to no end and I'm currently looking at the UI source to find a way to disable it.

    Since the code is a bit fiddly, with the events etc I thought I'd ask and see if anyone has managed to solve this elegantly.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    4,888
  3. Democide

    Democide

    Joined:
    Jan 29, 2013
    Posts:
    274
    Thanks, but that's now quite what I was going for. However I had also asked this question on Reddit and someone replied:

    If you set NAVIGATION to none, then the buttons do not take focus.