Horje
c# unity detect any keyboard input Code Example
unity check if key pressed
if (Input.GetKeyDown(KeyCode.KEY))
c# unity detect any keyboard input
// Detect any keyboard input but not mouse input
private void Update()
{
	if (Input.anyKeyDown && !(Input.GetMouseButtonDown(0) 
    	|| !Input.GetMouseButtonDown(1) || !Input.GetMouseButtonDown(2)))
	{
    	Debug.Log("No mouse pressed!");
	}
}
how to get keyboard input in unity
//https://docs.unity3d.com/ScriptReference/KeyCode.html - ALL KEYCODES




Csharp

Related
new color unity Code Example new color unity Code Example
c# unity detect any keyboard input but not mouse input Code Example c# unity detect any keyboard input but not mouse input Code Example
how to convert a 2d coordinate to an index Code Example how to convert a 2d coordinate to an index Code Example
c# datetime now timestamp Code Example c# datetime now timestamp Code Example
unity detect keyboard not mouse Code Example unity detect keyboard not mouse Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9