docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)