Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: darishi on November 14, 2012, 08:01:42 PM

Title: Reseting All Checkboxes on RadioButtonRoot
Post by: darishi on November 14, 2012, 08:01:42 PM
Hello All,

Is there a way to set all Checkboxes, that have the same Radio Button Root, to isChecked = false?

Thanks!
Title: Re: Reseting All Checkboxes on RadioButtonRoot
Post by: ArenMook on November 14, 2012, 09:24:26 PM
yourRadioButtonRoot.GetComponentsInChildren<UICheckbox>(), foreach through this list and set isChecked = false on each.
Title: Re: Reseting All Checkboxes on RadioButtonRoot
Post by: darishi on November 14, 2012, 09:45:32 PM
Aha! Of course.  Thank you so much!