I am trying to make a sort of animation controller where I can register and call transitions but am running into an issue with the state switching. When I want to change the animation, I want to wait for the end of the current loop (I will expand this later to also be able to blend immediately) but am unable to figure out why the character is freezeframing in t-pose every so often (when one of the animation clips is loaded after finishing another animation)
Thank you for pointing that out, I have revised my code to do this now and that seems to have fixed it.
There is a follow-up issue however. The bark animation appears to be playing on top of the idle. Whereas I want it to stop playing the idle animation while playing the bark, then onComplete it should go back to playing idle (by listening for the finished event on the mixer).
Would you be able to view the updated code and tell me what could be causing that as well?
EDIT: Made a code revision, made a mistake such that previousAction and activeAction referred to the saem object so the original never got faded out.