Author Topic: Reseting All Checkboxes on RadioButtonRoot  (Read 2180 times)

darishi

  • Guest
Reseting All Checkboxes on RadioButtonRoot
« 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!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Reseting All Checkboxes on RadioButtonRoot
« Reply #1 on: November 14, 2012, 09:24:26 PM »
yourRadioButtonRoot.GetComponentsInChildren<UICheckbox>(), foreach through this list and set isChecked = false on each.

darishi

  • Guest
Re: Reseting All Checkboxes on RadioButtonRoot
« Reply #2 on: November 14, 2012, 09:45:32 PM »
Aha! Of course.  Thank you so much!