# DoubleField

> Make a text field for entering double values.

## Definition

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

## DoubleField(double, GUILayoutOption\[])

Make a text field for entering double values.

```csharp
public static double DoubleField(double value, params GUILayoutOption[] options)
```

### Parameters

**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The value to edit.**** (\[GUILayoutOption\[]]\(/engine/6000.6/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.6/script-reference/unityengine/guilayout/width.md), [GUILayout.Height](/engine/6000.6/script-reference/unityengine/guilayout/height.md), [GUILayout.MinWidth](/engine/6000.6/script-reference/unityengine/guilayout/minwidth.md), [GUILayout.MaxWidth](/engine/6000.6/script-reference/unityengine/guilayout/maxwidth.md), [GUILayout.MinHeight](/engine/6000.6/script-reference/unityengine/guilayout/minheight.md), [GUILayout.MaxHeight](/engine/6000.6/script-reference/unityengine/guilayout/maxheight.md), [GUILayout.ExpandWidth](/engine/6000.6/script-reference/unityengine/guilayout/expandwidth.md), [GUILayout.ExpandHeight](/engine/6000.6/script-reference/unityengine/guilayout/expandheight.md).

### Returns

| Type                                                           | Description                    |
| -------------------------------------------------------------- | ------------------------------ |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The value entered by the user. |

### Remarks

Additional Resources: [EditorGUILayout.FloatField](/engine/6000.6/script-reference/unityeditor/editorguilayout/floatfield.md), [EditorGUILayout.IntField](/engine/6000.6/script-reference/unityeditor/editorguilayout/intfield.md), [EditorGUILayout.LongField](/engine/6000.6/script-reference/unityeditor/editorguilayout/longfield.md).

## DoubleField(double, GUIStyle, GUILayoutOption\[])

Make a text field for entering double values.

```csharp
public static double DoubleField(double value, GUIStyle style, params GUILayoutOption[] options)
```

### Parameters

**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The value to edit.**** (\[GUIStyle]\(/engine/6000.6/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.6/script-reference/unityengine/guistyle.md).**** (\[GUILayoutOption\[]]\(/engine/6000.6/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.6/script-reference/unityengine/guilayout/width.md), [GUILayout.Height](/engine/6000.6/script-reference/unityengine/guilayout/height.md), [GUILayout.MinWidth](/engine/6000.6/script-reference/unityengine/guilayout/minwidth.md), [GUILayout.MaxWidth](/engine/6000.6/script-reference/unityengine/guilayout/maxwidth.md), [GUILayout.MinHeight](/engine/6000.6/script-reference/unityengine/guilayout/minheight.md), [GUILayout.MaxHeight](/engine/6000.6/script-reference/unityengine/guilayout/maxheight.md), [GUILayout.ExpandWidth](/engine/6000.6/script-reference/unityengine/guilayout/expandwidth.md), [GUILayout.ExpandHeight](/engine/6000.6/script-reference/unityengine/guilayout/expandheight.md).

### Returns

| Type                                                           | Description                    |
| -------------------------------------------------------------- | ------------------------------ |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The value entered by the user. |

### Remarks

Additional Resources: [EditorGUILayout.FloatField](/engine/6000.6/script-reference/unityeditor/editorguilayout/floatfield.md), [EditorGUILayout.IntField](/engine/6000.6/script-reference/unityeditor/editorguilayout/intfield.md), [EditorGUILayout.LongField](/engine/6000.6/script-reference/unityeditor/editorguilayout/longfield.md).

## DoubleField(string, double, GUILayoutOption\[])

Make a text field for entering double values.

```csharp
public static double DoubleField(string label, double value, params GUILayoutOption[] options)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Optional label to display in front of the double field.**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The value to edit.**** (\[GUILayoutOption\[]]\(/engine/6000.6/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.6/script-reference/unityengine/guilayout/width.md), [GUILayout.Height](/engine/6000.6/script-reference/unityengine/guilayout/height.md), [GUILayout.MinWidth](/engine/6000.6/script-reference/unityengine/guilayout/minwidth.md), [GUILayout.MaxWidth](/engine/6000.6/script-reference/unityengine/guilayout/maxwidth.md), [GUILayout.MinHeight](/engine/6000.6/script-reference/unityengine/guilayout/minheight.md), [GUILayout.MaxHeight](/engine/6000.6/script-reference/unityengine/guilayout/maxheight.md), [GUILayout.ExpandWidth](/engine/6000.6/script-reference/unityengine/guilayout/expandwidth.md), [GUILayout.ExpandHeight](/engine/6000.6/script-reference/unityengine/guilayout/expandheight.md).

### Returns

| Type                                                           | Description                    |
| -------------------------------------------------------------- | ------------------------------ |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The value entered by the user. |

### Remarks

Additional Resources: [EditorGUILayout.FloatField](/engine/6000.6/script-reference/unityeditor/editorguilayout/floatfield.md), [EditorGUILayout.IntField](/engine/6000.6/script-reference/unityeditor/editorguilayout/intfield.md), [EditorGUILayout.LongField](/engine/6000.6/script-reference/unityeditor/editorguilayout/longfield.md).

## DoubleField(string, double, GUIStyle, GUILayoutOption\[])

Make a text field for entering double values.

```csharp
public static double DoubleField(string label, double value, GUIStyle style, params GUILayoutOption[] options)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Optional label to display in front of the double field.**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The value to edit.**** (\[GUIStyle]\(/engine/6000.6/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.6/script-reference/unityengine/guistyle.md).**** (\[GUILayoutOption\[]]\(/engine/6000.6/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.6/script-reference/unityengine/guilayout/width.md), [GUILayout.Height](/engine/6000.6/script-reference/unityengine/guilayout/height.md), [GUILayout.MinWidth](/engine/6000.6/script-reference/unityengine/guilayout/minwidth.md), [GUILayout.MaxWidth](/engine/6000.6/script-reference/unityengine/guilayout/maxwidth.md), [GUILayout.MinHeight](/engine/6000.6/script-reference/unityengine/guilayout/minheight.md), [GUILayout.MaxHeight](/engine/6000.6/script-reference/unityengine/guilayout/maxheight.md), [GUILayout.ExpandWidth](/engine/6000.6/script-reference/unityengine/guilayout/expandwidth.md), [GUILayout.ExpandHeight](/engine/6000.6/script-reference/unityengine/guilayout/expandheight.md).

### Returns

| Type                                                           | Description                    |
| -------------------------------------------------------------- | ------------------------------ |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The value entered by the user. |

### Remarks

Additional Resources: [EditorGUILayout.FloatField](/engine/6000.6/script-reference/unityeditor/editorguilayout/floatfield.md), [EditorGUILayout.IntField](/engine/6000.6/script-reference/unityeditor/editorguilayout/intfield.md), [EditorGUILayout.LongField](/engine/6000.6/script-reference/unityeditor/editorguilayout/longfield.md).

## DoubleField(GUIContent, double, GUILayoutOption\[])

Make a text field for entering double values.

```csharp
public static double DoubleField(GUIContent label, double value, params GUILayoutOption[] options)
```

### Parameters

**** (\[GUIContent]\(/engine/6000.6/script-reference/unityengine/guicontent)): Optional label to display in front of the double field.**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The value to edit.**** (\[GUILayoutOption\[]]\(/engine/6000.6/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.6/script-reference/unityengine/guilayout/width.md), [GUILayout.Height](/engine/6000.6/script-reference/unityengine/guilayout/height.md), [GUILayout.MinWidth](/engine/6000.6/script-reference/unityengine/guilayout/minwidth.md), [GUILayout.MaxWidth](/engine/6000.6/script-reference/unityengine/guilayout/maxwidth.md), [GUILayout.MinHeight](/engine/6000.6/script-reference/unityengine/guilayout/minheight.md), [GUILayout.MaxHeight](/engine/6000.6/script-reference/unityengine/guilayout/maxheight.md), [GUILayout.ExpandWidth](/engine/6000.6/script-reference/unityengine/guilayout/expandwidth.md), [GUILayout.ExpandHeight](/engine/6000.6/script-reference/unityengine/guilayout/expandheight.md).

### Returns

| Type                                                           | Description                    |
| -------------------------------------------------------------- | ------------------------------ |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The value entered by the user. |

### Remarks

Additional Resources: [EditorGUILayout.FloatField](/engine/6000.6/script-reference/unityeditor/editorguilayout/floatfield.md), [EditorGUILayout.IntField](/engine/6000.6/script-reference/unityeditor/editorguilayout/intfield.md), [EditorGUILayout.LongField](/engine/6000.6/script-reference/unityeditor/editorguilayout/longfield.md).

## DoubleField(GUIContent, double, GUIStyle, GUILayoutOption\[])

Make a text field for entering double values.

```csharp
public static double DoubleField(GUIContent label, double value, GUIStyle style, params GUILayoutOption[] options)
```

### Parameters

**** (\[GUIContent]\(/engine/6000.6/script-reference/unityengine/guicontent)): Optional label to display in front of the double field.**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The value to edit.**** (\[GUIStyle]\(/engine/6000.6/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.6/script-reference/unityengine/guistyle.md).**** (\[GUILayoutOption\[]]\(/engine/6000.6/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.6/script-reference/unityengine/guilayout/width.md), [GUILayout.Height](/engine/6000.6/script-reference/unityengine/guilayout/height.md), [GUILayout.MinWidth](/engine/6000.6/script-reference/unityengine/guilayout/minwidth.md), [GUILayout.MaxWidth](/engine/6000.6/script-reference/unityengine/guilayout/maxwidth.md), [GUILayout.MinHeight](/engine/6000.6/script-reference/unityengine/guilayout/minheight.md), [GUILayout.MaxHeight](/engine/6000.6/script-reference/unityengine/guilayout/maxheight.md), [GUILayout.ExpandWidth](/engine/6000.6/script-reference/unityengine/guilayout/expandwidth.md), [GUILayout.ExpandHeight](/engine/6000.6/script-reference/unityengine/guilayout/expandheight.md).

### Returns

| Type                                                           | Description                    |
| -------------------------------------------------------------- | ------------------------------ |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The value entered by the user. |

### Remarks

Additional Resources: [EditorGUILayout.FloatField](/engine/6000.6/script-reference/unityeditor/editorguilayout/floatfield.md), [EditorGUILayout.IntField](/engine/6000.6/script-reference/unityeditor/editorguilayout/intfield.md), [EditorGUILayout.LongField](/engine/6000.6/script-reference/unityeditor/editorguilayout/longfield.md).
