1
NGUI 3 Support / [SOLVED] Refreshing the UIButton state based on collider active/inactive?
« on: November 29, 2014, 07:06:09 PM »
I'm working on a tutorial scene for my game. I have a script that turns off all colliders of the children in a panel of mine, then I turn on the ones I want active as users go through the tutorial.
I do want the objects to be a specific color when their colliders are disabled so they know they're not clickable (which thankfully, NGUI does standard).
All is fine except it seems when I deactivate an object with the UIButton component, then eventually turn that object's collider back on, the UIButton doesn't automatically leave the 'disabled' state. It'll change once I hover over the object, but I need it to change back to the 'Normal' state when I enable the object's collider.
Any solution to this?
I do want the objects to be a specific color when their colliders are disabled so they know they're not clickable (which thankfully, NGUI does standard).
All is fine except it seems when I deactivate an object with the UIButton component, then eventually turn that object's collider back on, the UIButton doesn't automatically leave the 'disabled' state. It'll change once I hover over the object, but I need it to change back to the 'Normal' state when I enable the object's collider.
Any solution to this?
