docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum ContentSizeFitter.FitMode

    Determines how the size of the layout element will adapt to its size properties.

    Namespace: UnityEngine.UI
    Assembly: UnityEngine.UI.dll
    Syntax
    public enum ContentSizeFitter.FitMode

    Fields

    Name Description
    Clamped

    Clamp size of the content between minimum and maximum sizes.

    MinSize

    Resize to the minimum size of the content.

    PreferredSize

    Resize to the preferred size of the content and clamp it between its min and max sizes.

    Unconstrained

    Don't perform any resizing.

    In This Article
    Back to top
    Copyright © 2026 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)