docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum AspectRatioFitter.AspectMode

    Specifies a mode to use to enforce an aspect ratio.

    Namespace: UnityEngine.UI
    Assembly: UnityEngine.UI.dll
    Syntax
    public enum AspectRatioFitter.AspectMode

    Fields

    Name Description
    EnvelopeParent

    Sizes the rectangle such that the parent rectangle is fully contained within.

    FitInParent

    Sizes the rectangle such that it's fully contained within the parent rectangle.

    HeightControlsWidth

    Changes the width of the rectangle to match the aspect ratio.

    None

    The aspect ratio is not enforced

    WidthControlsHeight

    Changes the height of the rectangle to match the aspect ratio.

    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)