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

How To Create A ToggleGroup Where Toggles Can All Be Off

Discussion in 'UGUI & TextMesh Pro' started by Costco, Aug 27, 2014.

  1. Costco

    Costco

    Joined:
    Aug 19, 2014
    Posts:
    7
    Hello,
    Just wondering if there is a standard means of creating a ToggleGroup where Toggles are mutually exclusive as per usual, but also the active Toggle can be turned off by clicking the active Toggle.

    So when the user clicks on the active toggle now none of the toggles are set to their on state.

    Is this possible within a ToggleGroup? It's not obvious and in playing around with the events and some custom scripts the answer is still eluding me.

    Curious.
    Thanks!
     
  2. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
  3. Costco

    Costco

    Joined:
    Aug 19, 2014
    Posts:
    7
    Thanks for the link.
    Cheers.