private static void CheckPOVGameObjects()
        {
            if (Application.isPlaying)
            {
                return;
            }

            var activeScene = SceneManager.GetActiveScene();

            ScenePOVRoot[] allRoots  = GameObject.FindObjectsOfType <ScenePOVRoot>();
            ScenePOVRoot   activePOV = null;

            foreach (var povRoot in allRoots)
            {
                if (povRoot.Scene == activeScene)
                {
                    activePOV = povRoot;
                }
            }

            if (activePOV == null)
            {
                activePOV = CreatePOVRootObject();
                MarkDirtyPOVScene(activePOV);
            }
            ;

            POVRoot = activePOV;
        }
 static void MarkDirtyPOVScene(ScenePOVRoot root)
 {
     EditorSceneManager.MarkSceneDirty(root.gameObject.scene);
 }