# ColorField.UxmlTraits

> Defines ColorField.UxmlTraits for the ColorField.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.UIElements](/engine/6000.5/script-reference/unityeditor/uielements.md)
* **Assembly:** UnityEditor.CoreModule
* **Inherits from:** [BaseFieldTraits\<Color, UxmlColorAttributeDescription>](/engine/6000.5/script-reference/unityengine/uielements/basefieldtraits2.md)

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

```csharp
public class ColorField.UxmlTraits : BaseFieldTraits<Color, UxmlColorAttributeDescription>
```

## Inheritance

**Inherited Members:**

* [UxmlTraits.uxmlChildElementsDescription](/engine/6000.5/script-reference/unityengine/uielements/visualelement/uxmltraits/uxmlchildelementsdescription.md)
* [UxmlTraits.Init(VisualElement, IUxmlAttributes, CreationContext)](/engine/6000.5/script-reference/unityengine/uielements/uxmltraits/init.md)
* [BaseUxmlTraits.canHaveAnyAttribute](/engine/6000.5/script-reference/unityengine/uielements/baseuxmltraits/canhaveanyattribute.md)
* [BaseUxmlTraits.uxmlAttributesDescription](/engine/6000.5/script-reference/unityengine/uielements/baseuxmltraits/uxmlattributesdescription.md)
