Heya.
I got a problem.
I defined an input in the Project Settings → Input, named “Fire”.
The input in made like that :
Name : Fire
Positive Button : w
Alt Positive Button : joystick button 0
Gravity : 1000
Drad : 0.001
Sensitivity : 1000
Snap : false
Invert : false
Type : Key or Mouse Button
Axis : X acis
Joy Num : Get Motion from all Joysticks
I made a player script in wich I use this code :
if(Input.GetKeyDown("Fire"))
{
Debug.Log("bang");
FireMachinegunBullet(myTransform.localPosition);
}
But when I’m launcher the simulation, the log tel me:
UnityException: Input Key named : Fire is unknown
Do anyone encountered the same issue and got a solution?