//加载场景路径(从Assets开始,以.unity后缀名结束)
sceneFullName = "Assets/Scenes/Main.unity";

LoadSceneParameters parameters = new LoadSceneParameters() { loadSceneMode = LoadSceneMode.Single,localPhysicsMode = LocalPhysicsMode.None };
AsyncOperation asyncOperation = UnityEditor.SceneManagement.EditorSceneManager.LoadSceneAsyncInPlayMode(sceneFullName,parameters);

Scene scene = UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode(sceneFullName,parameters);

加载场景路径:从Assets开始,以".unity"后缀名结束

如果不是场景完整路径,不会加载失败,会自动创建一个空场景

比如错误路径:"Assets/Scenes/Main"、"Scenes/Main.unity"、"Scenes/Main"、"Main.unity"、"Main",都会自动创建并加载一个名字为"Main"的空场景

如果发现加载的场景名字没问题,但是个空场景,说明加载逻辑是没问题的,只是路径错了