Author Topic: Radio button - UIToggle  (Read 2600 times)

Banini

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Radio button - UIToggle
« on: January 20, 2014, 05:13:58 AM »
Hi,

I would like to uncheck a radio button, I try with

  1.  foreach (UIToggle e in radio_buttons)
  2. {
  3. e.value = false;
  4. }
  5.  

That doesn't work.

There is 3 radio buttons on my scene, with group = 1.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Radio button - UIToggle
« Reply #1 on: January 20, 2014, 07:30:27 AM »
You can't uncheck the last radio button. One must always be on.

Instead, check the one you want checked. Others will turn themselves off automatically.