- Home /
How do I designate the string for GetButtonDown?
In the script on the Unity reference it has this piece of code.
if (Input.GetButtonDown ("Fire1")) {
How do I designate a button or mouse click as "Fire1"?
Answer by burnumd · Aug 12, 2010 at 08:07 PM
In the editor, go to the following menu: Edit->ProjectSettings->Input
. There you'll see all of the predefined button names and the keys assigned to them. The "Positive Button" is typically the value you want to change for an individual button (in this case "Fire1"). Docs for the Input manager are available here.
Answer by alliwantisaname · Mar 14, 2013 at 06:32 AM
use getbuttonup, then it can only mhappen once oer press
Your answer
Follow this Question
Related Questions
Prevent 'Hold' Of A Mouse Click 2 Answers
More Accurracy on Mouse Click Detection. 0 Answers
GUI.Button Functionality which button is clicked 1 Answer
Get DPad input value via GetButton instead of GetAxis? 8 Answers
Function GetButton only returning once? 2 Answers