private static void SceneManagerSceneUnloaded(Scene scene) { if (mixedRealityPlayspace == null) { // If we unloaded our playspace, see if another one exists SearchForAndEnableExistingPlayspace(RuntimeSceneUtils.GetRootGameObjectsInLoadedScenes()); } }
private static void SceneManagerSceneLoaded(Scene scene, LoadSceneMode loadSceneMode) { if (mixedRealityPlayspace == null) { SearchForAndEnableExistingPlayspace(RuntimeSceneUtils.GetRootGameObjectsInLoadedScenes()); } else { SearchForAndDisableExtraPlayspaces(scene.GetRootGameObjects()); } }