Unity Engine documentationScript ReferenceUnityEditorCameraEditorOnDestroy()See ScriptableObject.OnDestroy().Read time 1 minuteLast updated a month agoDefinition Type: Method Namespace: UnityEditor Assembly: UnityEditor public void OnDestroy()