1
NGUI 3 Documentation / Re: UIToggle
« on: September 06, 2014, 04:20:07 AM »
I want to toggle UIToggle programmatically. I've been stuck here for hours. Is there any function to do this?
Below is what I have.
public UIToggle soundchkbox;
soundchkbox= soundchkbox.GetComponent<UIToggle>();
soundchkbox.startsActive = true;
I can read the value but I want to be able to toggle it programmatically. Any help will be appreciated. Thanks.
Below is what I have.
public UIToggle soundchkbox;
soundchkbox= soundchkbox.GetComponent<UIToggle>();
soundchkbox.startsActive = true;
I can read the value but I want to be able to toggle it programmatically. Any help will be appreciated. Thanks.
