# ActiveLoaderAs<T>()

> Returns the current active loader, cast to the requested type. Useful shortcut when you need to get the active loader as something less generic than AdaptivePerformanceLoader.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.AdaptivePerformance](/engine/6000.6/script-reference/unityengine/adaptiveperformance.md)
* **Assembly:** UnityEngine.AdaptivePerformanceModule

```csharp
public T ActiveLoaderAs<T>() where T : AdaptivePerformanceLoader
```

### Returns

| Type | Description                                                                        |
| ---- | ---------------------------------------------------------------------------------- |
| T    | The active loader as requested type, or null if no active loader currently exists. |
