private static SceneTemplateDialog OpenDialog() { var dialog = SceneTemplateDialog.ShowWindow(); Assert.IsNotNull(dialog); return(dialog); }
public IEnumerator OpenBasicSceneAdditive() { if (SceneTemplateDialog.CanLoadAdditively()) { EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single); } yield return(null); Assert.IsFalse(SceneTemplateDialog.CanLoadAdditively()); var success = SceneTemplateDialog.CreateEmptyScene(true); Assert.IsFalse(success, "Load additively should fail for Empty Scene when there is already an im-memory scene loaded."); success = SceneTemplateDialog.CreateDefaultScene(true); Assert.IsFalse(success, "Load additively should fail for Default Scene when there is already an im-memory scene loaded."); }