# Init(VisualElement, IUxmlAttributes, CreationContext)

> Initialize the traits.

## 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)): VisualElement that will be created and populated.**** (\[IUxmlAttributes]\(/engine/6000.3/script-reference/unityengine/uielements/iuxmlattributes)): Bag of attributes where the data comes from.**** (\[CreationContext]\(/engine/6000.3/script-reference/unityengine/uielements/creationcontext)): Creation context, unused.
