docs.unity.cn
    Show / Hide Table of Contents

    Enum AspectRatioFitter.AspectMode

    Specifies a mode to use to enforce an aspect ratio.

    Namespace: UnityEngine.UI
    Syntax
    public enum AspectMode

    Fields

    Name Description Value
    None

    The aspect ratio is not enforced


    0
    WidthControlsHeight

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


    1
    HeightControlsWidth

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


    2
    FitInParent

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


    3
    EnvelopeParent

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


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