- Home /
What is it "Input Button 87 is not Setup"?
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 ;)
We have no idea what your script looks like. Please edit your question to include the script, and show where the error is in the script.
Answer by Graham-Dunnett · Apr 03, 2013 at 04:01 PM
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?
Answer by DommeZockt · Apr 03, 2013 at 07:00 PM
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 ;)
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
variable has not been assigned? 1 Answer
Animation spins wildly after completed 0 Answers
change animation name in inspector 2 Answers