# FloatField

> Constructor.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## FloatField()

Constructor.

```csharp
public FloatField()
```

## FloatField(int)

Constructor.

```csharp
public FloatField(int maxLength)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Maximum number of characters the field can take.

## FloatField(string, int)

Constructor.

```csharp
public FloatField(string label, int maxLength = 1000)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Maximum number of characters the field can take.
