-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ui root node is not sized properly with custom UiCamera's projection #2405
Comments
As a workaround I can set position_type to Absolute and create a separate system for manually resizing the root node using Px values |
This is irrelevant since #4745 Since it made it impossible to set custom projection for UI cameras. It also did a lot of changes to aspect ratio handling. So maybe even if custom UI projection were added back it would be fixed? |
I should probably rephrase the issue. It is not technically a custom projection, but a custom scaling mode for OrthographicProjection. And when it is not set to |
I understand, but it is impossible currently to access the |
Bevy version
0.5
Operating system & version
Tested on Linux, but probably affects all other systems
What you did
I have this system that resizes for all the cameras with
OrthographicsProjection
andCameraAspectRatio
compoents:The system works fine and the game itself displays correctly. However when I try to create a root node with size set to 100% by 100% it does not fill the whole window, but instead its virtual size gets limited to the value of the real screen size:
What you expected to happen
The root node should fill the whole window.
What actually happened
The root node's size was limited to the window's logical size and was not enough to fill the virtual camera size (1920 by 1080)
The text was updated successfully, but these errors were encountered: