Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Moradom on December 26, 2013, 04:13:50 PM
-
Hello all,
I have some simple Tween position scripts on my panels to move them on and off the screen. When the appropriate button is pressed it will trigger these tweens.
Each of these tweens has an animation curve and a duration. The duration will work the first time the animation is played, but anytime after that it will just "warp" to the position, ignoring the duration and/or animation curve (This is setup all in the Unity inspector)
I did see a few posts on this issue, and it was said to be addressed in a earlier version of NGUI. I am using the latest version and it does not appear to be fixed.
Anyone see this problem? This seems straightforward, am I missing something?
Thanks!
-
What triggers your tweens? And when you say the latest, which version do you actually have?
-
Hi Aren
I am using version 3.0.7f3. I am using UIPlayTween to call the tween animations on the objects
-
UIPlayTween has various settings regarding what happens, such as what happens if the tween is already at the end. How are yours set up?
-
Here is my setup
tigger condition - On Click
Play Direction - Forward
If Target is disabled - Do Nothing
if Already Playing - Continue
When Finished - Do not disable
If I call the tween's play forward and play reverse functions from code, it will always work. It seems like this problem only exists if I use UIPlayTween
-
UIPlayTween simply calls tween.Play(true), which is also what PlayForward() does. You can check the code in UIPlayTween, around line 292.