# Vector2Field

> Initializes and returns an instance of Vector2Field.

## Definition

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

## Vector2Field()

Initializes and returns an instance of Vector2Field.

```csharp
public Vector2Field()
```

## Vector2Field(string)

Initializes and returns an instance of Vector2Field.

```csharp
public Vector2Field(string label)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text to use as a label.
