How change speed via code in Animation States

Hi, does anyone know how to change the speed of a Animation State in the code?
I want get state “walking” and change his speed

You can’t change the speed directly, but if you make a float parameter and set it as the speed multiplier (the line below Speed) then you can set that parameter using animator.SetFloat(“Parameter Name”, value) to control the speed.

1 Like