How do I implement a code to execute, only when Tab is pressed while Shift is being held down?
I’m trying to be able to go to a previous Input Field using this function.
How do I implement a code to execute, only when Tab is pressed while Shift is being held down?
I’m trying to be able to go to a previous Input Field using this function.
@ILoveMyDada a code like this should work :
if(Input.GetButton(“Shift”))
{
if(Input.GetButtonDown(“Tab”))
{
Place the code you want to execute here();
}
}
You must have a Input set up as “Shift” and “Tab” to make this work
To do this go to the tab that says “Edit” and choose Project Setting > Input.
Next add 2 to the current size. Two new Input should show at the bottom. Change the name of each to Shift and Tab respectively. Than in the positive button set each Input to its name.