How to Always Run Loading Scene when I hit the Play button

Is there a way to get Unity to run my loading scene when I hit run, as opposed to the scene that I am currently editing?

My home scene won’t run unless the loading scene has been run first. So every time I run I have to open the loading scene. Then when I am finished I have to load the scene I am working on again. It’s a lot of navigation.

    [MenuItem ("Edit/Play from Prelaunch Scene %l")]
    public static void PlayFromPrelaunchScene () {
        if (EditorApplication.isPlaying == true) {
            EditorApplication.isPlaying = false;
            return;
        }

        EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo ();
        EditorSceneManager.OpenScene ("Assets/YourStartLevel.unity");
        EditorApplication.isPlaying = true;
    }

Put this in a script. Then you can assign a shortcut in the unity shortcuts menu ( search for prelaunch ).

Thanks for the script! It’s not quite what I am looking for as I am hoping to get back to what I was editing before launching.

To edit a dialog I actually have to drag the prefab into a scene and navigate to what I want to edit. I am trying to not have to repeat that process every time I run. It wastes a ton of time.