Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: bkevelham on September 11, 2013, 10:09:55 AM

Title: checkSprite visible for single frame when making UICheckbox object active again
Post by: bkevelham on September 11, 2013, 10:09:55 AM
I have a pretty simple setup of 3 UICheckboxes. The first checkbox determines the visibility of the other two, by setting their parent GameObject (which is their Radio Button Root) active or not. (Note that the first checkbox is completely independent. It does not have a radio button root).

When unchecking the first checkbox, I want to uncheck the other two and hide them. This all seems to work just fine, until I check the first checkbox again. This sets the parent GameObject active again, and for (what I assume to be) a single frame, the checkSprite of the previously selected UICheckbox is visible.

So I assume I'm not properly updating something, not calling a refresh I should call, or something to that effect. Would there be something obvious in this situation that I should take care of? Functionally all is fine. It's just this flicker that is somewhat annoying.
Title: Re: checkSprite visible for single frame when making UICheckbox object active again
Post by: bkevelham on September 12, 2013, 02:57:09 AM
Ah, nevermind. It seems that it wasn't a mere single frame. For some reason the instantTween was set to false where it had been true before. This caused the remainder of the tween to happen once the UICheckbox's GameObject becomes active again.