Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: deram_scholzara on April 19, 2013, 06:08:09 PM

Title: Animating Size of Clipping Panel Does Not Reveal Content
Post by: deram_scholzara on April 19, 2013, 06:08:09 PM
I have a Soft-clip panel containing a dock of icons at the bottom of the screen.  I have animations for opening and closing the panel by scaling the width of it.

The Closing animation works fine if the panel started open.

The Opening animation never works none of the widgets contained in the panel ever become visible - so I just have an empty dock with no icons in it.

The Closing animation doesn't work if the panel starts closed (with the icons clipped).

I've tried calling Refresh every frame on the panel, and tried calling ParentHasChanged every frame on the contained widgets - neither seems to fix the issue.  Also, the panel is not marked as static.  The only thing that seems to fix the issue is disabling/re-enabling the panel after it has opened.

Edit: I managed to "fix" it by creating an animation event that calls SendMessage("OnEnable") on the panel on the first frame of the animation.  Seems like this shouldn't be necessary though.