Class AdaptivePerformanceLoader
Adaptive Performance Loader abstract class used as a base class for specific provider implementations. Providers should implement subclasses of this to provide specific initialization and management implementations that make sense for their supported scenarios and needs.
Inherited Members
Namespace: UnityEngine.AdaptivePerformance
Syntax
public abstract class AdaptivePerformanceLoader : ScriptableObject
Methods
Deinitialize()
Ask loader to deinitialize all initialized subsystems.
Declaration
public virtual bool Deinitialize()
Returns
Type | Description |
---|---|
Boolean | Whether or not deinitialization succeeded. |
GetDefaultSubsystem()
Gets the loaded default subsystem.
Declaration
public abstract ISubsystem GetDefaultSubsystem()
Returns
Type | Description |
---|---|
ISubsystem | The loaded subsystem, or null if no default subsystem is loaded. |
GetLoadedSubsystem<T>()
Gets the loaded subsystem of the specified type. This is implementation-specific, because implementations contain data on what they have loaded and how best to get it.
Declaration
public abstract T GetLoadedSubsystem<T>()
where T : class, ISubsystem
Returns
Type | Description |
---|---|
T | The loaded subsystem, or null if no subsystem found. |
Type Parameters
Name | Description |
---|---|
T | Type of the subsystem to get. |
GetSettings()
Gets the Settings of the loader used to descibe the loader and subsystems.
Declaration
public abstract IAdaptivePerformanceSettings GetSettings()
Returns
Type | Description |
---|---|
IAdaptivePerformanceSettings | The settings of the loader. |
Initialize()
Initialize the loader. This should initialize all subsystems to support the desired runtime setup this loader represents.
Declaration
public virtual bool Initialize()
Returns
Type | Description |
---|---|
Boolean | Whether or not initialization succeeded. |
Start()
Ask loader to start all initialized subsystems.
Declaration
public virtual bool Start()
Returns
Type | Description |
---|---|
Boolean | Whether or not all subsystems were successfully started. |
Stop()
Ask loader to stop all initialized subsystems.
Declaration
public virtual bool Stop()
Returns
Type | Description |
---|---|
Boolean | Whether or not all subsystems were successfully stopped. |