Hello. I have created multiple gun aiming animations that I would like to interpolate between by moving the mouse up and down. I have set up a blend tree with the animations, with thresholds of -90, -45, 0, 45, and 90, just like in a video I saw by Royal Skies LLC, but I’m having trouble with the coding part. I tried, “animator.SetFloat(“aim”, Input.GetAxis(“Vertical”));” but the float doesn’t seem to be changing when I move the mouse, and thus the animations aren’t playing.
Here is the video for anyone who might be interested: (from 1:09 onward is the part that I followed) Unity 3D Animation Masks & Avatars (3rdPS/FPS Aiming In 2 Minutes!!!) - YouTube