- Home /
Question by
TheCount · Jan 30, 2014 at 04:58 AM ·
animationlegacystop animations
Animation Rewind not working
I play an animation using the legacy animation system.
animation.Play(animation)
Later I wish to stop the animation, and then set it back to it's original state
animation.Stop(animation) animation.Rewind(animation)
for some reason this doesn't seem to rewind it?
Comment
Answer by getyour411 · Jan 30, 2014 at 08:47 AM
What is "animation" - a string, a variable, a Type?
http://docs.unity3d.com/Documentation/ScriptReference/Animation.Rewind.html
At least as you have written it, it can't be both a string and a Type reference. It would be ok if 'animation' refers just to your clip (i.e "walk", "idle", etc.) but you also have animation as a type via animation.Play