docs.unity.cn
    Show / Hide Table of Contents

    Enum CanvasScaler.ScreenMatchMode

    Scale the canvas area with the width as reference, the height as reference, or something in between.

    Namespace: UnityEngine.UI
    Syntax
    public enum ScreenMatchMode

    Fields

    Name Description Value
    MatchWidthOrHeight

    Scale the canvas area with the width as reference, the height as reference, or something in between.


    0
    Expand

    Expand the canvas area either horizontally or vertically, so the size of the canvas will never be smaller than the reference.


    1
    Shrink

    Crop the canvas area either horizontally or vertically, so the size of the canvas will never be larger than the reference.


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