# BoundsField

> Make Center & Extents field for entering a Bounds.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## BoundsField(Bounds, GUILayoutOption\[])

Make Center & Extents field for entering a [Bounds](/engine/6000.7/script-reference/unityengine/bounds.md).

```csharp
public static Bounds BoundsField(Bounds value, params GUILayoutOption[] options)
```

### Parameters

**** (\[Bounds]\(/engine/6000.7/script-reference/unityengine/bounds)): The value to edit.**** (\[GUILayoutOption\[]]\(/engine/6000.7/script-reference/unityengine/guilayoutoption)): An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the `style`.\
&#x20;Additional Resources: [GUILayout.Width](/engine/6000.7/script-reference/unityengine/guilayout/width.md), [GUILayout.Height](/engine/6000.7/script-reference/unityengine/guilayout/height.md), [GUILayout.MinWidth](/engine/6000.7/script-reference/unityengine/guilayout/minwidth.md), [GUILayout.MaxWidth](/engine/6000.7/script-reference/unityengine/guilayout/maxwidth.md), [GUILayout.MinHeight](/engine/6000.7/script-reference/unityengine/guilayout/minheight.md), [GUILayout.MaxHeight](/engine/6000.7/script-reference/unityengine/guilayout/maxheight.md), [GUILayout.ExpandWidth](/engine/6000.7/script-reference/unityengine/guilayout/expandwidth.md), [GUILayout.ExpandHeight](/engine/6000.7/script-reference/unityengine/guilayout/expandheight.md).

### Returns

| Type                                                            | Description                    |
| --------------------------------------------------------------- | ------------------------------ |
| [Bounds](/engine/6000.7/script-reference/unityengine/bounds.md) | The value entered by the user. |

## BoundsField(string, Bounds, GUILayoutOption\[])

Make Center & Extents field for entering a [Bounds](/engine/6000.7/script-reference/unityengine/bounds.md).

```csharp
public static Bounds BoundsField(string label, Bounds value, params GUILayoutOption[] options)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label to display above the field.**** (\[Bounds]\(/engine/6000.7/script-reference/unityengine/bounds)): The value to edit.**** (\[GUILayoutOption\[]]\(/engine/6000.7/script-reference/unityengine/guilayoutoption)): An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the `style`.\
&#x20;Additional Resources: [GUILayout.Width](/engine/6000.7/script-reference/unityengine/guilayout/width.md), [GUILayout.Height](/engine/6000.7/script-reference/unityengine/guilayout/height.md), [GUILayout.MinWidth](/engine/6000.7/script-reference/unityengine/guilayout/minwidth.md), [GUILayout.MaxWidth](/engine/6000.7/script-reference/unityengine/guilayout/maxwidth.md), [GUILayout.MinHeight](/engine/6000.7/script-reference/unityengine/guilayout/minheight.md), [GUILayout.MaxHeight](/engine/6000.7/script-reference/unityengine/guilayout/maxheight.md), [GUILayout.ExpandWidth](/engine/6000.7/script-reference/unityengine/guilayout/expandwidth.md), [GUILayout.ExpandHeight](/engine/6000.7/script-reference/unityengine/guilayout/expandheight.md).

### Returns

| Type                                                            | Description                    |
| --------------------------------------------------------------- | ------------------------------ |
| [Bounds](/engine/6000.7/script-reference/unityengine/bounds.md) | The value entered by the user. |

## BoundsField(GUIContent, Bounds, GUILayoutOption\[])

Make Center & Extents field for entering a [Bounds](/engine/6000.7/script-reference/unityengine/bounds.md).

```csharp
public static Bounds BoundsField(GUIContent label, Bounds value, params GUILayoutOption[] options)
```

### Parameters

**** (\[GUIContent]\(/engine/6000.7/script-reference/unityengine/guicontent)): Label to display above the field.**** (\[Bounds]\(/engine/6000.7/script-reference/unityengine/bounds)): The value to edit.**** (\[GUILayoutOption\[]]\(/engine/6000.7/script-reference/unityengine/guilayoutoption)): An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the `style`.\
&#x20;Additional Resources: [GUILayout.Width](/engine/6000.7/script-reference/unityengine/guilayout/width.md), [GUILayout.Height](/engine/6000.7/script-reference/unityengine/guilayout/height.md), [GUILayout.MinWidth](/engine/6000.7/script-reference/unityengine/guilayout/minwidth.md), [GUILayout.MaxWidth](/engine/6000.7/script-reference/unityengine/guilayout/maxwidth.md), [GUILayout.MinHeight](/engine/6000.7/script-reference/unityengine/guilayout/minheight.md), [GUILayout.MaxHeight](/engine/6000.7/script-reference/unityengine/guilayout/maxheight.md), [GUILayout.ExpandWidth](/engine/6000.7/script-reference/unityengine/guilayout/expandwidth.md), [GUILayout.ExpandHeight](/engine/6000.7/script-reference/unityengine/guilayout/expandheight.md).

### Returns

| Type                                                            | Description                    |
| --------------------------------------------------------------- | ------------------------------ |
| [Bounds](/engine/6000.7/script-reference/unityengine/bounds.md) | The value entered by the user. |
