docs.unity.cn

Unity UI 2.0.0

    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

    对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
    In This Article
    • Fields
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 June 2023