Skip to content
Discussion options

You must be logged in to vote

Methods like world_to_viewport convert between 'viewport space' and 'world space'; they don't convert a world space position to another world space position that is relative to the viewport.
world_to_viewport is useful when you want to position a UI element (which are positioned in 'viewport space') relative to something in world space (like a sprite).

If you want to place an image relative to the window you probably want to take a look at the ui examples or ImageBundle specifically.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Gor-Madatyan
Comment options

Answer selected by Gor-Madatyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants