Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.