Version: 2020.1

EditorGUI.BoundsIntField

切换到手册
public static BoundsInt BoundsIntField (Rect position, BoundsInt value);
public static BoundsInt BoundsIntField (Rect position, string label, BoundsInt value);
public static BoundsInt BoundsIntField (Rect position, GUIContent label, BoundsInt value);

参数

position 屏幕上用于字段的矩形。
label (可选)显示在字段上方的标签。
value 要编辑的值。

返回

BoundsInt 用户输入的值。

描述

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

另请参阅扩展编辑器 (Extending the editor)。