simple, like "jump" is space and "Fire1" is click ect.. whats shift in scripts?
thanks 4 your time :)
simple, like "jump" is space and "Fire1" is click ect.. whats shift in scripts?
thanks 4 your time :)
The shift input “Positive Button” is “left shift” or “right shift”
All examples:
“right shift”, “left shift”, “right ctrl”, “left ctrl”, “right alt”, “left alt”, “right cmd”, “left cmd”
You can also use:
Input.GetKeyDown(KeyCode.LeftShift)
Put “left shift” in the Positive Button field and make sure the Type field is set to “Key or Mouse Button”.
you could use
if(input.GetKeyDown("shift"))
I beleive. buttons usually for a quick nickname of keys.
I cannot seem to add the left shift key in the input axes in the editor if i type shift or leftshift it just vanishes ?anyone have a clue why ,this is becoming a massive hindrance I am just trying to add turbo to the car tutorial with left shift but failing miserably :()
I found out why. You need to put “right shift” in the negative button then it works.
I tried everything for Shift detection(I can only guess it is a driver issue), finally got it to work using OnGUI to check Event.current.shift. Not clean, but I can finally use my SHIFT keys!!!
Check out: Unity - Scripting API: Event.shift