- Home /
Rewind() does not reset Model to original position in a Nested Animation Model Rig
I am given a model (exported from LightWave) that has the following structure ... please excuse the structure, as I am not sure why it is done this way, but it is...
Feature00 (GameObject that contains the animation store at the root directory)
OverlayContainer (Empty GameObject, only contain Transform)
ActorContainer (Empty GameObject, only contain Transform)
ActorContainer (GameObject with Transform and Renderer)
ActorModel (GameObject with Transform and Renderer)
The animation is intended to move the ActorModel, which it does when is called to play. However when it finished, I have tried various things, but could not reset the model back to its original location ...
Things that I have tried ...
Option 1
animation[clipToPlay].Stop();
animation[clipToPlay].Rewind();
Option 2
animation[clipToPlay].time = 0;
animation.Sample();
Option 3
animation[clipToPlay].normalizedTime = 1;
animation[clipToPlay].normalizedSpeed = -1;
animation.Play(clipToPlay);
Is there anything else that I can try?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613091242im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can I make animations snap to a frame? 1 Answer
FBX animation import from blender squishing issue. 0 Answers
Trouble with animation Rewind/stop 0 Answers
Death animation issues. 1 Answer
[Animation] Objects rotating in the wrong direction 0 Answers