Queestion about the world space

Hello.Is there a better explanation for this
Camera.ScreenToWorldPoint
Transforms a point from screen space into world space, where world space is defined as the coordinate system at the very top of your game’s hierarchy.

Not the best english here and im not sure whats going on here?

Hi Shaktillar,

In Unity, we have 3 spaces:

  • World Space (3D World in the scene)
  • Screen Space (Canvas UI elements and “where the mouse lives”)
  • viewport (normalised viewport of the camera, useful if you want to get the edges of your game screen)

ScreenToWorldPoint converts screen space coordinates (in our case: mouse coordinates) into world space coordinates. Without the method, we would have to do the maths ourselves.

Did this clear it up for you? :slight_smile:


See also:

1 Like

Yes thank you.

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

Privacy & Terms