---
title: UxmlTraits()
product: Unity Editor
version: '6000.3'
latest_version: '7000.0'
status: This page documents version 6000.3. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.3/script-reference/unityeditor/uielements/propertyfield/uxmltraits/ctor
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityeditor/uielements/propertyfield/uxmltraits/ctor.md
last_updated: 2026-09-14
generated_at: 2026-11-07T04:12:58.916Z
locale: en-us
---

# UxmlTraits()

> Constructor.

## Definition

* **Type:** Constructor
* **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 UxmlTraits()
```
