docs.unity.cn
    Show / Hide Table of Contents

    Enum PixelPerfectCamera.CropFrame

    An enumeration of the types of display cropping.

    Namespace: UnityEngine.Rendering.Universal
    Syntax
    public enum CropFrame

    Fields

    Name Description Value
    None

    No cropping.


    0
    Pillarbox

    Black borders added to the left and right of viewport to match Reference Resolution.


    1
    Letterbox

    Black borders added to the top and bottom of viewport to match Reference Resolution.


    2
    Windowbox

    Black borders added to all sides of viewport to match Reference Resolution.


    3
    StretchFill

    Expands the viewport to fit the screen resolution while maintaining the viewport's aspect ratio.


    4
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023