Unity Engine documentationScript ReferenceUnityEditorLightEditorLightEditor.SettingsOnDestroy()Cleanup internal settings state.Read time 1 minuteLast updated 2 months agoDefinition Type: Method Namespace: UnityEditor Assembly: UnityEditor public void OnDestroy()