Forum rules - please read before posting.

I can't get a custom input key to work

I want to push "a" to make a camera zoom. I have made a new menu and set the type to be; "on input key" (a)  - I have gotten into the input manager and added a custom input for my function, but I still get this message: 

Cannot find Input button 'a' - please define it in Unity's Input Manager (Edit -> Project settings -> Input).

Comments

  • The message is telling you what to do - "a" is the name of the input it's expecting, not the key itself.  Open up the Input Manager (in Edit -> Project Settings -> Input, as it explains) and create a new input for it.  You can name if "CameraZoom" if you like - the 'a' goes in the "Positive button" box.

    You can also consider using "active inputs" to run a Cutscene when a key is pressed, if that's more appropriate for what you're trying to achieve.  You can read about them in Section 2.14 of the Manual.
  • I did that exact thing and it still give me the issue. 

    Here is how i set it up in AC http://imgur.com/hbU1LWm


  • and heres the input thing  http://imgur.com/x3vy2Bf
  • "Zoom_02" is the name of your Input.  That's what you need to enter into the Menu's "Toggle key" box.
  • Ahh great! 
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.