泰课首页
技术分享
Unity课程
Manual
Scripting API
unity3d.com
Version:
2019.1
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
Manual
Scripting API
Language:
中文
English
日本語
Español
한국어
Scripting API
Version:
2019.1
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
GUI.GroupScopeConstructor
Switch to Manual
public
GUI.GroupScope
(
Rect
position
);
public
GUI.GroupScope
(
Rect
position
, string
text
);
public
GUI.GroupScope
(
Rect
position
,
Texture
image
);
public
GUI.GroupScope
(
Rect
position
,
GUIContent
content
);
public
GUI.GroupScope
(
Rect
position
,
GUIStyle
style
);
public
GUI.GroupScope
(
Rect
position
, string
text
,
GUIStyle
style
);
public
GUI.GroupScope
(
Rect
position
,
Texture
image
,
GUIStyle
style
);
Parameters
position
屏幕上用于组的矩形。
text
要在组上显示的文本。
image
要在组上显示的
Texture
。
content
该组的文本、图像和工具提示。如果提供,则该组“捕获”任何鼠标点击操作;如果省略,则不“捕获”鼠标,不渲染背景,并且将传递鼠标点击操作。
style
用于背景的样式。
Description
创建一个新的 GroupScope 并开始相应的组。