Play animation from code?

In the animation doc of setup-state-machine, how do I access isPunching bool from code? I need to change idle to run animation.

You can control Anim Graph parameter values from code: Anim Graph Parameters | Flax Documentation

(each Animated Model actor can have own set of parameter values)

1 Like

I just figure it out. Thank you for the reply.