Interface IAdaptivePerformance
The main interface to access Adaptive Performance. None of the properties in this interface change after startup. This means the references returned by the properties may be cached by the user.
Namespace: UnityEngine.AdaptivePerformance
Syntax
public interface IAdaptivePerformance
Properties
Active
Returns true if Adaptive Performance was initialized successfully, false otherwise. This means that Adaptive Performance is enabled in StartupSettings and the application runs on a device that supports Adaptive Performance.
Declaration
bool Active { get; }
Property Value
Type | Description |
---|---|
Boolean | True when Adaptive Performance is available, false otherwise. |
DevelopmentSettings
Access to development (logging) settings.
Declaration
IDevelopmentSettings DevelopmentSettings { get; }
Property Value
Type | Description |
---|---|
IDevelopmentSettings | Interface to control CPU and GPU performance levels of the device. |
DevicePerformanceControl
Control CPU and GPU performance of the device.
Declaration
IDevicePerformanceControl DevicePerformanceControl { get; }
Property Value
Type | Description |
---|---|
IDevicePerformanceControl | Interface to control CPU and GPU performance levels of the device. |
Indexer
Access to the Indexer system. See AdaptivePerformanceIndexer
Declaration
AdaptivePerformanceIndexer Indexer { get; }
Property Value
Type | Description |
---|---|
AdaptivePerformanceIndexer | Interface to scalers that are active and their associated settings. |
PerformanceStatus
Access performance status information of the device and your application.
Declaration
IPerformanceStatus PerformanceStatus { get; }
Property Value
Type | Description |
---|---|
IPerformanceStatus | Interface to access performance status information of the device and your application. |
Settings
Access to the Settings. See IAdaptivePerformanceSettings.
Declaration
IAdaptivePerformanceSettings Settings { get; }
Property Value
Type | Description |
---|---|
IAdaptivePerformanceSettings | Interface to settings that are loaded from the provider settings object during startup. |
ThermalStatus
Access thermal status information of the device.
Declaration
IThermalStatus ThermalStatus { get; }
Property Value
Type | Description |
---|---|
IThermalStatus | Interface to access thermal status information of the device. |
Methods
SupportedFeature(Feature)
List of supported Features by the loaded provider. See Feature.
Declaration
bool SupportedFeature(Feature feature)
Parameters
Type | Name | Description |
---|---|---|
Feature | feature | The feature in question. See Feature. |
Returns
Type | Description |
---|---|
Boolean | True if the requested feature is supported, false otherwise. |