Hi ArenMook,
Sorry that I give you the info that mislead.
Here are the things:
- I create a UISprite of a football. the ball is rolling by assigning TweenRotate from Z-axis 0 (From value) to 360 (To value)
Result : the ball rolls forward continuously and smoothly because I set 'loop' in the inspector
- I want the ball rolls back, so in the source code. I call a method ,PlayReverse() of the ball's gameobject refer to TweenRotate component
Result : the ball rolls backward nicely from the current Z-axis value but it stop rolling when Z-axis is 0 (From value)
Question : how to make the ball rolling backward and loop?
My workaround : since the PlayReverse() only tweens Z-axis from its current value to 0 (From value), I do change the 'To' value from 360 to -360 without calling PlayReverse(). it rolls backward in loop but it's not smooth at the timeI changing the 'To' value.
you can try using Tweens something in loop and call its PlayReversed(). it will stop tween when its current value goes to 'From' value.