unity mouse button 0 code example
Example 1: unity get mouse position
Vector3 worldPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Example 2: unity left mouse button
//Key Code in the Input Project Settings is "mouse 0"
Input.GetKey(KeyCode.Mouse0))
Example 3: unity mouse release
if (Input.GetMouseButtonUp(0))
{
// mouse is no longer pressed
}