返回介绍

GUI.ScrollViewScope.GUI.ScrollViewScope 滚动视图范围

发布于 2019-12-18 15:37:46 字数 3862 浏览 940 评论 0 收藏 0

JavaScript => public GUI.ScrollViewScope(position: Rect, scrollPosition: Vector2, viewRect: Rect)
JavaScript => public GUI.ScrollViewScope(position: Rect, scrollPosition: Vector2, viewRect: Rect, alwaysShowHorizontal: bool, alwaysShowVertical: bool)
JavaScript => public GUI.ScrollViewScope(position: Rect, scrollPosition: Vector2, viewRect: Rect, horizontalScrollbar: GUIStyle, verticalScrollbar: GUIStyle)
JavaScript => public GUI.ScrollViewScope(position: Rect, scrollPosition: Vector2, viewRect: Rect, alwaysShowHorizontal: bool, alwaysShowVertical: bool, horizontalScrollbar: GUIStyle, verticalScrollbar: GUIStyle)

C# => public GUI.ScrollViewScope(Rect position, Vector2 scrollPosition, Rect viewRect);
C# => public GUI.ScrollViewScope(Rect position, Vector2 scrollPosition, Rect viewRect, bool alwaysShowHorizontal, bool alwaysShowVertical);
C# => public GUI.ScrollViewScope(Rect position, Vector2 scrollPosition, Rect viewRect, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar);
C# => public GUI.ScrollViewScope(Rect position, Vector2 scrollPosition, Rect viewRect, bool alwaysShowHorizontal, bool alwaysShowVertical, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar);

Parameters 参数

positionRectangle on the screen to use for the ScrollView.
scrollPositionThe pixel distance that the view is scrolled in the X and Y directions.
viewRectThe rectangle used inside the scrollview.
alwaysShowHorizontalOptional parameter to always show the horizontal scrollbar. If false or left out, it is only shown when clientRect is wider than position.
alwaysShowVerticalOptional parameter to always show the vertical scrollbar. If false or left out, it is only shown when clientRect is taller than position.
horizontalScrollbarOptional GUIStyle to use for the horizontal scrollbar. If left out, the horizontalScrollbar style from the current GUISkin is used.
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 和您的相关数据。
    原文