返回介绍

GUILayout.ScrollViewScope.GUILayout.ScrollViewScope GUI布局滚动范围

发布于 2019-12-18 15:37:47 字数 3597 浏览 1355 评论 0 收藏 0

JavaScript => public GUILayout.ScrollViewScope(scrollPosition: Vector2, params options: GUILayoutOption[])
JavaScript => public GUILayout.ScrollViewScope(scrollPosition: Vector2, alwaysShowHorizontal: bool, alwaysShowVertical: bool, params options: GUILayoutOption[])
JavaScript => public GUILayout.ScrollViewScope(scrollPosition: Vector2, horizontalScrollbar: GUIStyle, verticalScrollbar: GUIStyle, params options: GUILayoutOption[])
JavaScript => public GUILayout.ScrollViewScope(scrollPosition: Vector2, style: GUIStyle, params options: GUILayoutOption[])
JavaScript => public GUILayout.ScrollViewScope(scrollPosition: Vector2, alwaysShowHorizontal: bool, alwaysShowVertical: bool, horizontalScrollbar: GUIStyle, verticalScrollbar: GUIStyle, params options: GUILayoutOption[])
JavaScript => public GUILayout.ScrollViewScope(scrollPosition: Vector2, alwaysShowHorizontal: bool, alwaysShowVertical: bool, horizontalScrollbar: GUIStyle, verticalScrollbar: GUIStyle, background: GUIStyle, params options: GUILayoutOption[])

C# => public GUILayout.ScrollViewScope(Vector2 scrollPosition, params GUILayoutOption[] options);
C# => public GUILayout.ScrollViewScope(Vector2 scrollPosition, bool alwaysShowHorizontal, bool alwaysShowVertical, params GUILayoutOption[] options);
C# => public GUILayout.ScrollViewScope(Vector2 scrollPosition, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar, params GUILayoutOption[] options);
C# => public GUILayout.ScrollViewScope(Vector2 scrollPosition, GUIStyle style, params GUILayoutOption[] options);
C# => public GUILayout.ScrollViewScope(Vector2 scrollPosition, bool alwaysShowHorizontal, bool alwaysShowVertical, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar, params GUILayoutOption[] options);
C# => public GUILayout.ScrollViewScope(Vector2 scrollPosition, bool alwaysShowHorizontal, bool alwaysShowVertical, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar, GUIStyle background, params GUILayoutOption[] options);

Parameters 参数

scrollPositionThe position to use display.
alwaysShowHorizontalOptional parameter to always show the horizontal scrollbar. If false or left out, it is only shown when the content inside the ScrollView is wider than the scrollview itself.
alwaysShowVerticalOptional parameter to always show the vertical scrollbar. If false or left out, it is only shown when content inside the ScrollView is taller than the scrollview itself.
horizontalScrollbar
verticalScrollbarOptional GUIStyle to use for the vertical scrollbar. If left out, the verticalScrollbar style from the current GUISkin is used.

Description 描述

Create a new ScrollViewScope and begin the corresponding ScrollView.

创建新的滚动范围并形成相对应的滚动视图。

scrollviewscope

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文