# LayerMaskField

> Constructor of the field.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.UIElements](/engine/6000.3/script-reference/unityeditor/uielements.md)
* **Assembly:** UnityEditor

## LayerMaskField(int)

Constructor of the field.

```csharp
public LayerMaskField(int defaultMask)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The mask to use for a first selection.

## LayerMaskField(string, int)

Constructor of the field.

```csharp
public LayerMaskField(string label, int defaultMask)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The label to prefix the [LayerMaskField](/engine/6000.3/script-reference/unityeditor/uielements/layermaskfield.md).**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The mask to use for a first selection.

## LayerMaskField()

Constructor of the field.

```csharp
public LayerMaskField()
```

## LayerMaskField(string)

Constructor of the field.

```csharp
public LayerMaskField(string label)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The label to prefix the [LayerMaskField](/engine/6000.3/script-reference/unityeditor/uielements/layermaskfield.md).
