Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Banini on January 20, 2014, 05:13:58 AM

Title: Radio button - UIToggle
Post by: Banini 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.
Title: Re: Radio button - UIToggle
Post by: ArenMook 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.