My animator window in unity
My code
Does anyone know how to write a code that can change the animator parameters? I tried making something but the variables i made were separate from the ones in the animator window so obviously it didn’t work. I’m just trying to get him to walk left and right. right now i have it so if Direction equals -1 he does the walk left animation and if it’s equal to 1 he goes right. I want these values to change when the player presses a or d or the arrows but I just cant figure out how to connect them. This is what i tried doing i know it’s not anywhere near what i have to do to get this to work but man am I lost. I borrowed code from a similar question that was asked here
It wouldnt let me copy and paste my code for some stupid reason so it’s in a picture
Melody Elbel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.