The question:
On my Anim State Machine entering a new state does not reset the pose ONLY if it is cached. Is this a bug? or, how do I restart this cashed pose from frame 0?
For I have cached animation poses that refuse to reset to frame 0 when my state starts. (normal poses do reset)
Info:
I do not use animation montages and can not use them as a solution.
My reason for this is that I do not want to mix up responsibilities of the graphs and state machine. I want all state logic to be inside of my state machine with no chance of an animation montage overriding it for basic use like jumping or attacking.
My setup:
For my character I have configured a simple animation blueprint.
All of the animations including actions like jumping and attacking are selected through the Animation State Machine.
The EventGraph:
stores booleans when an action is requested, (attack button pressed, jump button etc) and logic for notifies etc.
The AnimGraph:
blends my animations, like sword_attack or fist_attack based on what weapon is held, then stores it into the pose cache “attack”
The StateMachine:
Evaluates stored booleans and moves into next state if allowed to. When it moves to state Attack it will use the attack animation used in the cache “attack”.
So the problem is, when I use the cache “attack” it won’t ever reset to frame 0, I don’t want it to loop or start halfway. If I don’t use the cache but a single pose instead, it works just fine but then I can not work with caches or blending as required.
Am I running into a bug or limitation of the state machine? Is there are solution not using montages?
Does not reset pose to frame 0:
Does reset pose to frame 0: