Why does my version of the method not work?

image
When I wrote it like this the mouse was not exact and did not attach to the mouse cursor which made it go off screen easily

image
But after fixing it after the challenge and watching him do it the mouse worked perfectly as intended. Why is that?

Hi Xarce,

Have you already tried to log the value of Input.mousePosition.x into your console? The mouse “lives” in the Screen Space, which is different from the World Space. The former works with pixels, the latter with World Units.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms