Looking to Lazy Load animations

Is it currently possible to create animation states at runtime? I would like to lazy load all my animations instead of loading all of them at the start of the game. Maybe I should keep the states, and simply add the animation to the states?

Hi @Josh_Gatarn and welcome!

I think the example project below does what you are looking for.

https://developer.playcanvas.com/en/tutorials/animation-without-state-graph/

It is also possible to use the Anim State Graph without creating all the connections between the states. For this you only create the states with animations and activated them manually with the example code below.

this.entity.anim.baseLayer.transition('Jump', 0.2);