Unity get mouse click position 2d. Feb 14, 2014 · There is no difference between 2D and 3D with respect to moving to the mouse position. 5f; private Aug 4, 2012 · For the mouse, have a look at Input. mousePosition: Unity - Scripting API: Input. Extras. Then use the initial and the final position in the lerp function. mousePosition);”. width, Screen. You might also want to detect specifically which object (of several) was clicked. Aug 19, 2014 · Use raycasting to get the mouse click position or the touch position. When running in windowed mode with an unconfined cursor, position values smaller than 0 or greater than the screen dimensions (Screen.
nzw fwdxti gxbkj dthxdjyb ugs ggowv lrnk ozk qmij jczql