- Home /
Question by
adamoni · Feb 25, 2021 at 10:46 AM ·
animationanimatoranimator controller
parameter does not exist in concroller
I'm trying to make my walk animation work, currently, I have an arrow I connected between any state and my run left animation, when I press it this is what isee
what do I do to make it look like this
לכידה1.png
(65.0 kB)
לכידה2.png
(144.5 kB)
Comment
Answer by pauldarius98 · Feb 25, 2021 at 11:26 AM
You need to add the parameter in the controller like this https://docs.unity3d.com/Manual/AnimationParameters.html and then you can set it from code using animator.SetFloat("Horizontal", 0.5f);
where animator is a reference to your animator controller and you can place any value you want instead of 0.5f