# GUIDField

> Initializes and returns an instance of GUIDField.

## Definition

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

## GUIDField()

Initializes and returns an instance of GUIDField.

```csharp
public GUIDField()
```

## GUIDField(int)

Initializes and returns an instance of GUIDField.

```csharp
public GUIDField(int maxLength)
```

### Parameters

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

## GUIDField(string, int)

Initializes and returns an instance of GUIDField.

```csharp
public GUIDField(string label, int maxLength = -1)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text to use as a label.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Maximum number of characters for the field.
