Animation rewind?

Is there a way to play current animation from start while still playing it?
I use a Bool as parameter for the state and I need to make anim rewind when triggering the same state.

thx

you can create a transition to self which can have you’re bool as a condition to trigger it

When I tried “transition to self” I was keeping my bool parameter at true for the entire anim state, thus it was keeping entering same state.
Now I just set the parameter once and it works.
thx

one thing you could try is to change your bool for a trigger, trigger are consumed by the statemachine when a transition with this trigger as condition is started.

You can force it back to the beginning with animator.Play(“state”, 0, 0) if you know what state it’s in.