Method OnDestroy OnDestroy() Destroys any game objects created by this environment probe manager for each environment probe, and clears the mapping of environment probes. Declaration protected override void OnDestroy() Overrides SubsystemLifecycleManager<XREnvironmentProbeSubsystem, XREnvironmentProbeSubsystemDescriptor, XREnvironmentProbeSubsystem.Provider>.OnDestroy()