- Home /
Escape key not working
I was playtesting my game and I hadn't tested the pause menu in a few hours (after adding some new menus), but it's just not working. Here is the code I am working with:
if(Input.GetKeyUp(KeyCode.Escape))
{
Debug.Log("Button Registered");
}
This code works with literally every other key except the escape key. And I've tried it with 2 keyboards to be sure.
What's happening here?
Answer by Lairinus · May 31, 2013 at 01:30 AM
I'm not positive, as it works for me just fine.
What you could try doing is using Input.GetButtonUp("EscapeFix")
Edit > project settings > input, and then you can make a button called EscapeFix. Set the positive/negative button to "escape." If that doesn't work, then not quite sure what will.
I rebooted my computer and it seemed to fix the problem. Had no idea what was going on there.
Your answer
Follow this Question
Related Questions
Escape key not working 1 Answer
Script for collectiong keys to escape 2 Answers
Exit application 3 Answers
Oh My Gosh, I broke Unity 2 Answers
What just happened to my Unity!? 3 Answers