# GetFormatterExtension<T>()

> Searches for a Formatter Extension of the given type, and returns it. Returns null if the type cannot be found.

## Definition

* **Type:** Method
* **Namespace:** [Unity.SmartStrings](/engine/6000.7/script-reference/unity/smartstrings.md)
* **Assembly:** UnityEngine.SmartStringsModule

```csharp
public T GetFormatterExtension<T>() where T : class, IFormatter
```

### Returns

| Type | Description                                                                                                                                  |
| ---- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| T    | The class implementing [IFormatter](/engine/6000.7/script-reference/unity/smartstrings/core/extensions/iformatter.md) if found, else `null`. |
