# DoubleField

> Makes a text field for entering doubles.

## Definition

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

## DoubleField(Rect, double, GUIStyle)

Makes a text field for entering doubles.

```csharp
public static double DoubleField(Rect position, double value, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the double field.**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The value to edit.**** (\[GUIStyle]\(/engine/6000.5/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.5/script-reference/unityengine/guistyle.md).

### Returns

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

### Remarks

Additional Resources: [EditorGUI.FloatField](/engine/6000.5/script-reference/unityeditor/editorgui/floatfield.md), [EditorGUI.IntField](/engine/6000.5/script-reference/unityeditor/editorgui/intfield.md), [EditorGUI.LongField](/engine/6000.5/script-reference/unityeditor/editorgui/longfield.md).

## DoubleField(Rect, string, double, GUIStyle)

Makes a text field for entering doubles.

```csharp
public static double DoubleField(Rect position, string label, double value, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the double field.**** (\[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.5/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.5/script-reference/unityengine/guistyle.md).

### Returns

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

### Remarks

Additional Resources: [EditorGUI.FloatField](/engine/6000.5/script-reference/unityeditor/editorgui/floatfield.md), [EditorGUI.IntField](/engine/6000.5/script-reference/unityeditor/editorgui/intfield.md), [EditorGUI.LongField](/engine/6000.5/script-reference/unityeditor/editorgui/longfield.md).

## DoubleField(Rect, GUIContent, double, GUIStyle)

Makes a text field for entering doubles.

```csharp
public static double DoubleField(Rect position, GUIContent label, double value, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the double field.**** (\[GUIContent]\(/engine/6000.5/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.5/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.5/script-reference/unityengine/guistyle.md).

### Returns

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

### Remarks

Additional Resources: [EditorGUI.FloatField](/engine/6000.5/script-reference/unityeditor/editorgui/floatfield.md), [EditorGUI.IntField](/engine/6000.5/script-reference/unityeditor/editorgui/intfield.md), [EditorGUI.LongField](/engine/6000.5/script-reference/unityeditor/editorgui/longfield.md).
