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 ");
}
}
}