diff --git a/com.unity.cinemachine/Editor/SaveDuringPlay/SaveDuringPlay.cs b/com.unity.cinemachine/Editor/SaveDuringPlay/SaveDuringPlay.cs index 4e9b48320..415a66087 100644 --- a/com.unity.cinemachine/Editor/SaveDuringPlay/SaveDuringPlay.cs +++ b/com.unity.cinemachine/Editor/SaveDuringPlay/SaveDuringPlay.cs @@ -68,7 +68,8 @@ public static List FindAllRootObjectsInOpenScenes() { var allRoots = new List(); for (int i = 0; i < SceneManager.sceneCount; ++i) - allRoots.AddRange(SceneManager.GetSceneAt(i).GetRootGameObjects()); + if (SceneManager.GetSceneAt(i).isLoaded) + allRoots.AddRange(SceneManager.GetSceneAt(i).GetRootGameObjects()); return allRoots; }