Version: 2022.1

GUI.GroupScopeConstructor

切换到手册
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);

参数

position 屏幕上用于组的矩形。
text 要在组上显示的文本。
image 要在组上显示的 Texture
content 该组的文本、图像和工具提示。如果提供,则该组“捕获”任何鼠标点击操作;如果省略,则不“捕获”鼠标,不渲染背景,并且将传递鼠标点击操作。
style 用于背景的样式。

描述

创建一个新的 GroupScope 并开始相应的组。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961