AdaptivePerformanceLoaderHelper
Adaptive Performance Loader abstract subclass used as a base class for specific provider implementations. Class provides some helper logic that can be used to handle subsystem handling in a typesafe manner, reducing potential boilerplate code.
Read time 5 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEngine.AdaptivePerformance
- Assembly: UnityEngine.AdaptivePerformanceModule
- Inherits from: AdaptivePerformanceLoader
public abstract class AdaptivePerformanceLoaderHelper : AdaptivePerformanceLoader
Fields
Value | Description |
|---|---|
| m_SubsystemInstanceMap | Map of loaded susbsystems. Used so Unity doesn't always have to call AdaptivePerformanceManger and do a manual search to find the instance it loaded. |
Methods
Method | Description |
|---|---|
| CreateSubsystem | Creates a subsystem with a given list of descriptors and a specific subsystem id. |
| Deinitialize | Override of AdaptivePerformanceLoaderHelper.Deinitialize to provide for clearing the instance map. |
| DestroySubsystem | Destroy a subsystem instance of a given type. Subsystem is assumed to already be loaded from a previous call to CreateSubsystem. |
| GetLoadedSubsystem | 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. |
| StartSubsystem | Start a subsystem instance of a given type. Subsystem is assumed to already be loaded from a previous call to CreateSubsystem. |
| StopSubsystem | Stop a subsystem instance of a given type. Subsystem is assumed to already be loaded from a previous call to CreateSubsystem. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |