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

Unity UI Always keep a button selected

Discussion in 'UGUI & TextMesh Pro' started by Verdemis, Aug 29, 2018.

  1. Verdemis

    Verdemis

    Joined:
    Apr 27, 2013
    Posts:
    92
    Hello everyone,

    when I click anywhere on the screen where no button is, the current selected button gets deselected. Is there a simple way to prevent this behavior or do I need to write code for this?

    Best,
    Verdemis
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,076
    not sue if you are actually looking for a Toggle instead of a Button...
     
  3. RainerEngblom

    RainerEngblom

    Joined:
    Sep 10, 2020
    Posts:
    9
    I have the same exact problem. The event system in newer Unity versions doesn't have anything on this.