# LongField

> Makes a text field for entering long integers.

## Definition

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

## LongField(Rect, long, GUIStyle)

Makes a text field for entering long integers.

```csharp
public static long LongField(Rect position, long value, GUIStyle style)
```

### Parameters

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

### Returns

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

### Remarks

Additional Resources: [EditorGUI.IntField](/engine/6000.7/script-reference/unityeditor/editorgui/intfield.md), [EditorGUI.FloatField](/engine/6000.7/script-reference/unityeditor/editorgui/floatfield.md), [EditorGUI.DoubleField](/engine/6000.7/script-reference/unityeditor/editorgui/doublefield.md).

## LongField(Rect, string, long, GUIStyle)

Makes a text field for entering long integers.

```csharp
public static long LongField(Rect position, string label, long value, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)): Rectangle on the screen to use for the long field.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Optional label to display in front of the long field.**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The value to edit.**** (\[GUIStyle]\(/engine/6000.7/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.7/script-reference/unityengine/guistyle.md).

### Returns

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

### Remarks

Additional Resources: [EditorGUI.IntField](/engine/6000.7/script-reference/unityeditor/editorgui/intfield.md), [EditorGUI.FloatField](/engine/6000.7/script-reference/unityeditor/editorgui/floatfield.md), [EditorGUI.DoubleField](/engine/6000.7/script-reference/unityeditor/editorgui/doublefield.md).

## LongField(Rect, GUIContent, long, GUIStyle)

Makes a text field for entering long integers.

```csharp
public static long LongField(Rect position, GUIContent label, long value, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)): Rectangle on the screen to use for the long field.**** (\[GUIContent]\(/engine/6000.7/script-reference/unityengine/guicontent)): Optional label to display in front of the long field.**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The value to edit.**** (\[GUIStyle]\(/engine/6000.7/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.7/script-reference/unityengine/guistyle.md).

### Returns

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

### Remarks

Additional Resources: [EditorGUI.IntField](/engine/6000.7/script-reference/unityeditor/editorgui/intfield.md), [EditorGUI.FloatField](/engine/6000.7/script-reference/unityeditor/editorgui/floatfield.md), [EditorGUI.DoubleField](/engine/6000.7/script-reference/unityeditor/editorgui/doublefield.md).
