How to position an entity to a side of the screen?

Hey guys, so I’m trying to place an entity in a side of the screen, so that no matter where the game is played, the position is snapped to that specific location.

I’m accessing the main camera’s rect but I don’t think it is that simple…

Say, for example, that I want an entity to snap to the right of the screen, kind of like the sprites do by setting their pivot… how would you guys do it?

Sounds like you need the screenToWorld function.

1 Like

Or if it’s a 2d graphic an html div :smile: