# LoadSceneAsyncInPlayMode(string, LoadSceneParameters)

> This method allows you to load a Scene during playmode in the editor, without requiring the Scene to be included in the Build Settings Scene list.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.SceneManagement](/engine/6000.5/script-reference/unityeditor/scenemanagement.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static AsyncOperation LoadSceneAsyncInPlayMode(string path, LoadSceneParameters parameters)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Path to Scene to load.**** (\[LoadSceneParameters]\(/engine/6000.5/script-reference/unityengine/scenemanagement/loadsceneparameters)): Parameters to apply to loading. See [LoadSceneParameters](/engine/6000.5/script-reference/unityengine/scenemanagement/loadsceneparameters.md).

### Returns

| Type                                                                            | Description                                                                                                                          |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| [AsyncOperation](/engine/6000.5/script-reference/unityengine/asyncoperation.md) | Use the [AsyncOperation](/engine/6000.5/script-reference/unityengine/asyncoperation.md) to determine if the operation has completed. |

### Remarks

The use case for this is to emulate Asset bundles while loading scenes in play mode in the editor. When including a Scene in an asset bundle, you don't add the Scene to build settings. This means you can't load the Scene during play mode using the normal [LoadSceneAsync](/engine/6000.5/script-reference/unityengine/scenemanagement/scenemanager/loadsceneasync.md) method. Using this method instead of [LoadSceneAsync](/engine/6000.5/script-reference/unityengine/scenemanagement/scenemanager/loadsceneasync.md) allows you to load the Scene during play mode without requiring it to be in the Build Settings Scene list. This means your code needs to detect whether the game is [running in the editor](/engine/6000.5/script-reference/unityengine/application/iseditor.md) or not, and use this method (LoadSceneAsyncInPlayMode) when in the editor, and [LoadSceneAsync](/engine/6000.5/script-reference/unityengine/scenemanagement/scenemanager/loadsceneasync.md) when in the built version.
