# BaseField(string, VisualElement)

> Initializes and returns an instance of BaseField.

## Definition

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

```csharp
protected BaseField(string label, VisualElement visualInput)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text to use as a label.**** (\[VisualElement]\(/engine/6000.3/script-reference/unityengine/uielements/visualelement)): The visual element to use as the input for the field.
