Version: 2021.3
public static BoundsInt BoundsIntField (BoundsInt value, params GUILayoutOption[] options);
public static BoundsInt BoundsIntField (string label, BoundsInt value, params GUILayoutOption[] options);
public static BoundsInt BoundsIntField (GUIContent label, BoundsInt value, params GUILayoutOption[] options);

参数

label 生成用于输入 Bounds 的 Position & Size 字段。
value 要编辑的值。
options 一个可选的布局选项列表,用于指定额外的布局属性。此处传递的任何值都将覆盖 style 定义的设置。
另请参阅:GUILayout.WidthGUILayout.HeightGUILayout.MinWidthGUILayout.MaxWidthGUILayout.MinHeightGUILayout.MaxHeightGUILayout.ExpandWidthGUILayout.ExpandHeight

返回

BoundsInt 用户输入的值。

描述

创建用于输入 BoundsInt 的 Position 和 Size 字段。

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