Method OnDestroy OnDestroy() Invoked when this MonoBehaviour is destroyed. Affects the state. Declaration protected override void OnDestroy() Overrides SubsystemLifecycleManager<XRSessionSubsystem, XRSessionSubsystemDescriptor, XRSessionSubsystem.Provider>.OnDestroy()