Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: elvess on January 24, 2014, 06:53:07 AM
-
Hello. I have 3 UICheckboxes. Each of them controls different object. When I click on checkbox, controlled gameObject is shown. How can I call different function for each of these checkboxes when I click on it.
Thank U.
-
By setting a different function on each checkbox? I don't understand the question.
-
Yes. I want to set different function on each checkbox.
-
So do it. :P
-
Look for the UIToggleScript on the checkbox Object/"widget". There should be an OnChangeValue section. You'll see the "notify" which is the script that will be called when "OnChangeValue" occurs. Below the "notify" is the method (function) within the script that you want to have called. Note that you can call a chain of Notify...Method's by adding a new "notify" just below the last method selected.
Hope that makes sense.