Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: asimarif on January 10, 2013, 02:53:42 AM

Title: Example 3: Main Menu Animation Customization
Post by: asimarif on January 10, 2013, 02:53:42 AM
Hi Everybody,
I'm studying "Example 3 - Menu" and want to customize the animation. Currently, the panels are animated and at the end, every panel comes to the right side of the screen. I want them to come at the center of the screen.

Currently, I have set X=0, Y=0, Z=0 on "Panel - Main" game object. By doing this, initially, the panel is displayed on the center of the screen but as soon as the animation starts/ends, the next/previous panels are once again placed on the right side of the screen.

Can someone please help me out what I need to set up so every time, every panel (i.e. "Panel - Main", "Panel - Options") stay at the center of the screen before/after the animation?

Thank you so much
Title: Re: Example 3: Main Menu Animation Customization
Post by: Cripple on January 10, 2013, 09:34:32 AM
That is not really related to NGUI, you have to change the AnimationClips MovingBack and MovingForward using the Animation windows of Unity to create the animation you want.
Title: Re: Example 3: Main Menu Animation Customization
Post by: asimarif on January 18, 2013, 07:50:18 AM
Oh great. Thank you so much guys :-)