docs.unity.cn
    Show / Hide Table of Contents

    Enum ScrollRect.ScrollbarVisibility

    Enum for which behavior to use for scrollbar visibility.

    Namespace: UnityEngine.UI
    Syntax
    public enum ScrollbarVisibility

    Fields

    Name Description Value
    Permanent

    Always show the scrollbar.


    0
    AutoHide

    Automatically hide the scrollbar when no scrolling is needed on this axis. The viewport rect will not be changed.


    1
    AutoHideAndExpandViewport

    Automatically hide the scrollbar when no scrolling is needed on this axis, and expand the viewport rect accordingly.


    When this setting is used, the scrollbar and the viewport rect become driven, meaning that values in the RectTransform are calculated automatically and can't be manually edited.

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