unity keycode for left click code example
Example: keycode for left mouse click unity
using UnityEngine;public class Example : MonoBehaviour
{
void Update()
{
//Detect if the left mouse button is pressed
if (Input.GetKey(KeyCode.Mouse0))
{
Debug.Log("Mouse 0 ");
}
}
}