Crate bevy_auto_scaling
Source - AspectRatio
- Fixed aspect ratio of the camera.
ratio=width/height
- ScalePlugin
- The plugin of the plugin.
Scale the view of cameras with AspectRatio component to fit the window.
- ScalingUI
- Logical size of window, for UI use.
Typically matches the sizes of cameras.
Insert it to enable scaling on UI. Will take over UiScale resource.
- fixed_size_2d
- return an Projection with scaling mode of given size.
For 2d cameras.
- fixed_size_3d
- return an Projection with scaling mode of given size.
For orthographic 3d cameras.