# EnergyUsageControl(IAdaptivePerformance)

> Returns the energy-usage control for the given Adaptive Performance instance, or null if the active implementation does not support energy-usage tracking.

## Definition

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

```csharp
public static IEnergyUsageControl EnergyUsageControl(this IAdaptivePerformance adaptivePerformance)
```

### Parameters

**** (\[IAdaptivePerformance]\(/engine/6000.7/script-reference/unityengine/adaptiveperformance/iadaptiveperformance)): The Adaptive Performance instance to query.

### Returns

| Type                                                                                                          | Description                                           |
| ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [IEnergyUsageControl](/engine/6000.7/script-reference/unityengine/adaptiveperformance/ienergyusagecontrol.md) | The energy-usage control, or `null` when unsupported. |

### Remarks

Exposed as an extension method rather than a member of [IAdaptivePerformance](/engine/6000.7/script-reference/unityengine/adaptiveperformance/iadaptiveperformance.md) so that it can be added without breaking existing external implementations of that interface.
