Replies: 2 comments 3 replies
-
|
You might be able to achieve something like this using camera Viewport and setting physical_position/physical_size based on window size and your desired aspect ratio. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Faced same issue here. @Teajey have you found any solution? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to be able to resize the game screen uniformly to the window as demonstrated here:
Screen.Recording.2022-08-16.at.22.05.39.480p.mov
I rendered the game screen, including UI, to a sprite texture so that I could achieve this. But I've found that the UI becomes non-interactable this way. I understand that this is because Bevy only really supports one UI tree in it's current state, on the default window render target.
Is it necessary to create an issue for this?
Is there an alternative way to achieve the same effect? I'd prefer not to have the screen resize disproportionately with flexbox and having to update the size of all entities on screen, etc.
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions