文档

Unity Engine

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static IEnergyUsageControl EnergyUsageControl(this IAdaptivePerformance adaptivePerformance)

Parameters

adaptivePerformance

The Adaptive Performance instance to query.

Returns

Type

Description

IEnergyUsageControlThe energy-usage control, or
null
when unsupported.

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.