unity knowing when 0 input is pressed
if(!Input.anyKey)
{
Debug.Log("No input is pressed");
}
unity knowing when 0 input is pressed
if(!Input.anyKey)
{
Debug.Log("No input is pressed");
}
c# unity detect any keyboard input but not mouse 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!");
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us