Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BoundsField

Make Center & Extents field for entering a Bounds.
Read time 2 minutesLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

BoundsField(Bounds, GUILayoutOption[])

Make Center & Extents field for entering a Bounds.
public static Bounds BoundsField(Bounds value, params GUILayoutOption[] options)

Parameters

value

The value to edit.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

BoundsThe value entered by the user.

BoundsField(string, Bounds, GUILayoutOption[])

Make Center & Extents field for entering a Bounds.
public static Bounds BoundsField(string label, Bounds value, params GUILayoutOption[] options)

Parameters

label

Label to display above the field.

value

The value to edit.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

BoundsThe value entered by the user.

BoundsField(GUIContent, Bounds, GUILayoutOption[])

Make Center & Extents field for entering a Bounds.
public static Bounds BoundsField(GUIContent label, Bounds value, params GUILayoutOption[] options)

Parameters

Label to display above the field.

value

The value to edit.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

BoundsThe value entered by the user.