Hey Guys,
I have a Problem with my Game.
I have a script,that will run an animation.
But there is an error “Input 87 is not setup”.
What i should do??
sorry for my bad english
Hey Guys,
I have a Problem with my Game.
I have a script,that will run an animation.
But there is an error “Input 87 is not setup”.
What i should do??
sorry for my bad english
You’ve called Input.GetButton
, Input.GetButtonDown
or Input.GetButtonUp
and the button name you’ve passed in has not been located. The exception you get is recommending that you set the button up in the Input Manager. 87 is the ASCII code for ‘W’. Perhaps you’ve passed 87 into the GetButton
function instead of a string that contains a virtual button name?
Thanks for the comments!
Yes i have a GetButton function. here is my script:
if(Input.GetButtonDown(“Fire1”))
animation.Play(“attack”);
if(Input.GetButtonDown(“87”))
animation.Play(“walk”);
sorry for my errors, but i have unity until three days