Welcome,
Guest
. Please
login
or
register
.
March 23, 2025, 10:16:39 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIButtonPlayAnimation help
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIButtonPlayAnimation help (Read 1519 times)
Chad Goodson
Guest
UIButtonPlayAnimation help
«
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
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIButtonPlayAnimation help
«
Reply #1 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.
Logged
Chad Goodson
Guest
Re: UIButtonPlayAnimation help
«
Reply #2 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!
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIButtonPlayAnimation help