Welcome,
Guest
. Please
login
or
register
.
September 29, 2023, 03:53:23 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
do something at the end of tween animation
« previous
next »
Print
Pages: [
1
]
Author
Topic: do something at the end of tween animation (Read 1351 times)
jimbbq
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 25
do something at the end of tween animation
«
on:
April 24, 2014, 08:45:09 AM »
Hi
I am trying to call a function at the end of a tweening animation, but I have no idea how to do this. Is there something like?
void onEndTween(){
}
thanks
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: do something at the end of tween animation
«
Reply #1 on:
April 25, 2014, 05:31:59 AM »
All tweens have the onFinished delegate. You can set it in inspector, or via code:
TweenPosition tp
=
TweenPosition
.
Begin
(
...
)
;
EventDelegate
.
Add
(
tp
.
onFinished
, YourFunction
)
;
Logged
jimbbq
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 25
Re: do something at the end of tween animation
«
Reply #2 on:
April 25, 2014, 10:50:01 AM »
thanks a lot for your help! you are a star!!!
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
do something at the end of tween animation