Class Holder
Global access to the default Adaptive Performance interface and lifecycle management controls.
Inherited Members
Namespace: UnityEngine .AdaptivePerformance
Assembly: Unity.AdaptivePerformance.dll
Syntax
public static class Holder
Properties
Instance
Global access to the default Adaptive Performance interface to access the main manager object.
Declaration
public static IAdaptivePerformance Instance { get; }
Property Value
Type | Description |
---|---|
IAdaptive |
Methods
Deinitialize()
Stops Adaptive Performance (if still running) and initiates the tear down process. Once complete, Instance is no longer available. All Adaptive Performance objects are removed from the scene.
Declaration
public static void Deinitialize()
Initialize()
Create and attach the Adaptive Performance to the scene and initiate the startup process for the provider. After initialization is complete, Instance is made available.
Declaration
public static void Initialize()
Remarks
Should only be used when "Initialize on Startup" is disabled.
Events
LifecycleEventHandler
Subscribe to Adaptive Performance lifecycle events which are sent when the Instance value changes.
Declaration
public static event LifecycleEventHandler LifecycleEventHandler
Event Type
Type | Description |
---|---|
Lifecycle |