Crate bevy_simple_screen_boxing

Crate bevy_simple_screen_boxing 

Source
Expand description

bevy_simple_screen_boxing aims to provide a simple, easy, and convenient way to set and manage camera boxing (that is, letterboxing and pillarboxing) in order to ensure that the output is within the right resolution or aspect ratio.

It provides ways to set a singular static resolution or aspect ratio, to always ensure the output is at a resolution that is an integer scale, or provide manually specified letter/pillarboxing.

This crate requires bevy version 0.17

§Features

  • Provides an easy, but powerful, API for camera boxing!

§Quick Start

  • Add the CameraBoxingPlugin
  • Add the CameraBox component to your Camera, and configure what you need.

Structs§

AdjustBoxing
This event is used to tell us that we need to recalculate our Camera Boxes.
CameraBoxingPlugin
The Plugin that adds in all the systems for camera-boxing.
HasNested
NestedWithin
This is used to denote that a CameraBox is ‘nested within’ another camera box. Use this if you want to add on the effect of another CameraBox onto a CameraBox.

Enums§

CameraBox
Configures how to box the output, with either: PillarBoxes, Letterboxes, or both.
CameraBoxSet
The system set provided and used by the plugin for ordering.