docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum PanelScaler.ScreenMatchMode

    A mode used to scale the Panel area if the aspect ratio of the current resolution does not fit the reference resolution.

    Namespace: Unity.UIElements.Runtime
    Assembly: solution.dll
    Syntax
    public enum PanelScaler.ScreenMatchMode

    Fields

    Name Description
    Expand

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

    MatchWidthOrHeight

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

    Shrink

    Crop the Panel area either horizontally or vertically, so the size of the Panel 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)