docs.unity3d.com
Search Results for

    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
    Assembly: UnityEngine.UI.dll
    Syntax
    public enum CanvasScaler.ScreenMatchMode

    Fields

    Name Description
    Expand

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

    MatchWidthOrHeight

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

    Shrink

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

    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)