Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Chad Goodson on August 07, 2013, 10:35:20 AM

Title: UIButtonPlayAnimation help
Post by: Chad Goodson on August 07, 2013, 10:35:20 AM
I have been studying the Menu example that come with NGUI and trying to set it up on my own project. Even after examining the components I still don't have a complete grasp on how to set up my own. I am getting stuck on the UIButtonPlayAnimation script that is attached to the "option" button. In the example the button triggers an animation of the option screen sprite coming into view. I attach the UIButtonPlayAnimation script go my button but I cannot change the "target" parameter. It will not accept an animation. What am I doing wrong? In the example the attached "animation" is not an animation at all but appears to be a null with animations attached. Help
Title: Re: UIButtonPlayAnimation help
Post by: ArenMook on August 08, 2013, 10:07:26 AM
Eh? If it really is an animation then you can just drag the game object that has it into that slot, and it will pick it up. To create an animation, CTRL+7, and make it.
Title: Re: UIButtonPlayAnimation help
Post by: Chad Goodson on August 08, 2013, 10:25:00 AM
Thank you. I pulled the sprite from my Hierarchy to the Target in the inspector and it worked great!