Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: immortant on June 26, 2014, 09:29:37 PM

Title: Fade in/out UIGrid
Post by: immortant on June 26, 2014, 09:29:37 PM
I try to fade in/out grid in pic 1. by TweenPosition.(ResetToBeginning, PlayForward, PlayReverse)
But Problem is sometime when move grid.
Offset Y of Grid have wrong offset but in inspector same value offset @ start.
or It have another way to do this, Thank you in advance.
Title: Re: Fade in/out UIGrid
Post by: ArenMook on June 27, 2014, 12:59:04 PM
So what's actually moved? You seem to have grid as a child of the sprite, which seems odd to me. Grid generally goes right underneath the scroll view. Do you have a scroll view in there, or just the grid object you're moving? Do you enable any game objects?
Title: Re: Fade in/out UIGrid
Post by: immortant on July 01, 2014, 09:34:01 PM
  At first all 4Dock are disable when click button dock below it will enable specific dock and disable after click again.
I want to move grid(in hierarchy) when click enable.(like fade in/out)

Thank you for your fast response.
Title: Re: Fade in/out UIGrid
Post by: ArenMook on July 02, 2014, 05:21:27 AM
Yeah... honestly those screenshots don't tell me anything. Only odd thing I see is your scale of your button. Why is it 1.4 on the Y? It should be (1, 1, 1). You also haven't actually answered my first question. What's actually moved?

Also note that you should move the object first, and then enable it. If you enable a panel, then change its position you may run into issues.