# UxmlAttributeAttribute

> Declares that a field or property is associated with a UXML attribute.

## Definition

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

## UxmlAttributeAttribute()

Declares that a field or property is associated with a UXML attribute.

```csharp
public UxmlAttributeAttribute()
```

## UxmlAttributeAttribute(string)

Declares that a field or property is associated with a UXML attribute.

```csharp
public UxmlAttributeAttribute(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the UXML attribute.

## UxmlAttributeAttribute(string, string\[])

Declares that a field or property is associated with a UXML attribute.

```csharp
public UxmlAttributeAttribute(string name, params string[] obsoleteNames)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the UXML attribute.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): The Obsolete UXML attribute names.
