Version: 2020.2
public static Bounds BoundsField (Bounds value, params GUILayoutOption[] options);
public static Bounds BoundsField (string label, Bounds value, params GUILayoutOption[] options);
public static Bounds BoundsField (GUIContent label, Bounds value, params GUILayoutOption[] options);

参数

label 显示在字段上方的标签。
value 要编辑的值。
options 一个可选的布局选项列表,用于指定额外的布局属性。此处传递的任何值都将覆盖 style 定义的设置。
另请参阅:GUILayout.WidthGUILayout.HeightGUILayout.MinWidthGUILayout.MaxWidthGUILayout.MinHeightGUILayout.MaxHeightGUILayout.ExpandWidthGUILayout.ExpandHeight

返回

Bounds 用户输入的值。

描述

创建用于输入 Bounds 的 Center 和 Extents 字段。