I tried to stop the animation objects with a button, I want to when it stops, the object is located at the starting position …
for example i have a cube with animated moving position. when the stop button is pressed, the cube back to its original position …
Can you help me,please?
If the position change is only through the animation, animation.Stop(); is described as “Stopping an animation also Rewinds it to the Start.”.
http://unity3d.com/support/documentation/ScriptReference/Animation.Stop