Unity - Scripting API: Holder
class in UnityEngine.AdaptivePerformance
/
Implemented in:UnityEngine.AdaptivePerformanceModule
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
Global access to the default Adaptive Performance interface and lifecycle management controls.
Static Properties
| Property | Description |
|---|---|
| Instance | Global access to the default Adaptive Performance interface to access the main manager object. |
Static Methods
| Method | Description |
|---|---|
| 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. |
| 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. Should only be used when "Initialize on Startup" is disabled. |
Events
| Event | Description |
|---|---|
| LifecycleEventHandler | Subscribe to Adaptive Performance lifecycle events which are sent when the Instance value changes. |