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.
Read time 1 minuteLast updated 18 days ago
Definition
- Type: Method
- Namespace: UnityEngine.AdaptivePerformance
- Assembly: UnityEngine.AdaptivePerformanceModule
public static IEnergyUsageControl EnergyUsageControl(this IAdaptivePerformance adaptivePerformance)
Parameters
The Adaptive Performance instance to query.
Returns
Type | Description |
|---|---|
| IEnergyUsageControl | The energy-usage control, or |
Remarks
Exposed as an extension method rather than a member of IAdaptivePerformance so that it can be added without breaking existing external implementations of that interface.