# BaseUxmlTraits

> Base class that describes a VisualElement derived class for the parsing of UXML files and the generation of UXML schema definition.

## Definition

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

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

```csharp
public abstract class BaseUxmlTraits
```

## Properties

| Property                                                                                                                              | Description                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [canHaveAnyAttribute](/engine/6000.5/script-reference/unityengine/uielements/baseuxmltraits/canhaveanyattribute.md)                   | Must return true if the UXML element attributes are not restricted to the values enumerated by [\_uxmlAttributesDescription](/engine/6000.5/script-reference/unityengine/uielements/baseuxmltraits/uxmlattributesdescription.md). |
| [uxmlAttributesDescription](/engine/6000.5/script-reference/unityengine/uielements/baseuxmltraits/uxmlattributesdescription.md)       | Describes the UXML attributes expected by the element. The attributes enumerated here will appear in the UXML schema.                                                                                                             |
| [uxmlChildElementsDescription](/engine/6000.5/script-reference/unityengine/uielements/baseuxmltraits/uxmlchildelementsdescription.md) | Describes the types of element that can appear as children of this element in a UXML file.                                                                                                                                        |
