# Init(VisualElement, IUxmlAttributes, CreationContext)

> Initializes the UxmlTraits for MaskField.

## Definition

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

> **Warning:**
>
> **Deprecated.** UxmlTraits is deprecated and will be removed. Use UxmlElementAttribute instead.

```csharp
public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)
```

### Parameters

**** (\[VisualElement]\(/engine/6000.3/script-reference/unityengine/uielements/visualelement)): The VisualElement that will be populated.**** (\[IUxmlAttributes]\(/engine/6000.3/script-reference/unityengine/uielements/iuxmlattributes)): The bag from where the attributes are taken.**** (\[CreationContext]\(/engine/6000.3/script-reference/unityengine/uielements/creationcontext)): The creation context, unused.
