kris
New Member
Posts: 3
|
Post by kris on Feb 10, 2023 5:06:51 GMT
Hi there,
I'm wondering are there any helper methods for getting the world and screen position of the screen edges? Also, for the edges like the bounds that stop the camera from moving? It needs to also work with zoom and on any screen resolution.
In the game I am making, the objects must spawn just at the edges, either of the screen, of the whole playable space.
Thanks in advance.
|
|
|
Post by Luís Pedro Fonseca on Feb 18, 2023 16:02:54 GMT
Hi Kris, you can use the "ScreenSizeInWorldCoordinates" property. In conjunction with the camera position, you'll be able to get the exact position of each border. Let me know if this works. Cheers
|
|