# GetExtension<T>()

> Returns the first attached extension of a type.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Localization.Editor](/engine/6000.7/script-reference/unity/localization/editor.md)
* **Assembly:** UnityEditor

```csharp
public T GetExtension<T>() where T : class, IResourceCollectionExtension
```

### Returns

| Type | Description                                     |
| ---- | ----------------------------------------------- |
| T    | The extension, or `null` when none is attached. |
