EditorGUILayout.BoundsField 边界盒字段


static function BoundsField (value : Bounds, params options : GUILayoutOption[]) : Bounds
static function BoundsField (label : String, value : Bounds, params options : GUILayoutOption[]) : Bounds
static function BoundsField (label : GUIContent, value : Bounds, params options : GUILayoutOption[]) : Bounds

Parameters参数

  • label
    Label to display above the field. // 字段上显示的标签
  • value
    The value to edit. // 编辑的值
  • options
    An optional list of layout options that specify extra layouting   properties. Any values passed in here will override settings defined by   the style.  See Also: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight
       指定额外布局属性的可选列表。这里传递任意值,将覆盖样式定义的设置。

Returns

Bounds - The value entered by the user.

返回Bounds,由用户输入的值。

Description描述

Make Center & Extents field for entering a Bounds.

制作Center & Extents字段,用于输入一个Bounds。


,