# GetAttribute<TAttribute>()

> Returns the first attribute of the given type.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Properties](/engine/6000.7/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule

## GetAttribute\<T>()

```csharp
TAttribute GetAttribute<TAttribute>() where TAttribute : Attribute
```

### Returns

| Type | Description                                        |
| ---- | -------------------------------------------------- |
| T    | The attribute of the given type for this property. |
