Search Unity

Any Key and input clearing

Discussion in 'Editor & General Support' started by digiholic, Feb 7, 2017.

  1. digiholic

    digiholic

    Joined:
    Nov 23, 2013
    Posts:
    14
    I've got a title screen with a Press Start screen that I'd like to accept any key input to go to the main menu. The main menu, when cancelled out of, should put the game back to that title screen. The issue I have is that if I use Input.AnyKeyDown, it registers the Cancel button hit by the player to get to the screen, and kicks them back to the main menu. What can I do to avoid this? Is there a way to "consume" the keydown when cancel is pressed so you'd need to hit it again, or a different key to cancel out?
     
  2. Ritro

    Ritro

    Joined:
    Jul 6, 2014
    Posts:
    2
    I am having the similar problem. Don't know how to solve it yet - any solutions?