Enum PixelPerfectCamera.CropFrame
An enumeration of the types of display cropping.
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.2D.Runtime.dll
Syntax
public enum PixelPerfectCamera.CropFrame
Fields
Name | Description |
---|---|
Letterbox | Black borders added to the top and bottom of viewport to match Reference Resolution. |
None | No cropping. |
Pillarbox | Black borders added to the left and right of viewport to match Reference Resolution. |
StretchFill | Expands the viewport to fit the screen resolution while maintaining the viewport's aspect ratio. |
Windowbox | Black borders added to all sides of viewport to match Reference Resolution. |