Home

Published

- 1 min read

unity get mouse position

img of unity get mouse position

The solution for this is noted below

unity get mouse position

Solution

   using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    void Update()
    {
        Vector3 mousePos = Input.mousePosition;
    }
}

Try other methods by searching on the site. That is if this doesn’t work