Author Topic: hide / show checkboxes in script  (Read 4170 times)

harrisonpink

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
hide / show checkboxes in script
« on: August 04, 2014, 02:28:03 PM »
Hi there all,

What's the best way to hide / show a checkbox element through c#? A gameobject enable disable doesn't quite work since when the object is re-enabled, even if "Start checked" is selected, the checkbox doesn't start with the check mark sprite active.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: hide / show checkboxes in script
« Reply #1 on: August 05, 2014, 12:24:22 PM »
There is no such thing as a checkbox class or "start checked" in NGUI 3, so I'm assuming you are still on NGUI 2, which doesn't come with support. Is this correct?