public static InitializeSceneWindow OpenWindow(UnityEngine.SceneManagement.Scene scene) { InitializeSceneWindow window = EditorWindow.GetWindow <InitializeSceneWindow> (true, "Initialize Scene", true); window.sceneToInitialize = scene; return(window); }
static void OnSceneLoaded(Scene scene, LoadSceneMode mode) { if (!EditorSceneSetupUtil.IsSceneSetup()) { Debug.Log("Scene Not Setup"); InitializeSceneWindow.OpenWindow(scene); } }