Making a transition from an Anim state to itself

Hi, I’m using the new AnimStateGraph and I have a shoot animation that I want to restart at any time if the player shoots again before the previous animation is over. It seems making a transition from the shooting state to itself is not possible. My current workaround is having an extra dummy shooting state, but I don’t like that solution very much. Another option is to transition from “Any”, but I guess that would allow shooting during any state, including reload. So what is the recommended way to accomplish this?

One for @Elliott

The workaround you have tis currently the way to do.

We did add this briefly before releasing it broke existing graphs as as walk animations would constantly restart. https://github.com/playcanvas/engine/issues/3313

Having a bit more of a think on this on how it could be solved/implemented

1 Like