Hey guys. I was just wondering, how would I get Unity to recognize the curser in javascript? Like for a mouse look script or something.
Thanks
Hey guys. I was just wondering, how would I get Unity to recognize the curser in javascript? Like for a mouse look script or something.
Thanks
Look at the Input class, specifically Input.mousePosition and Input.GetAxis() (by default, the axes ‘Mouse X’ and ‘Mouse Y’ return the mouse delta). The Screen class also has a couple of properties for setting the cursor behavior.