# PhysicsSceneLoadScope

> Scope used during scene load operations such as SceneManager.LoadSceneAsync, with the purpose of providing a different physics scene than the global one. public class SimpleLoader: MonoBehaviour { IEnumerator Start() { int buildIndex0 = 0; int buildIndex1 = 1; var newScene = SceneManagement.SceneManager.LoadScene(buildIndex0, new LoadSceneParameters() { localPhysicsMode = LocalPhysicsMode.Physics3D }); var localPhys = newScene.GetPhysicsScene(); using(new PhysicsSceneLoadScope(localPhys)) { SceneManagement.SceneManager.LoadSceneAsync(buildIndex1); } } } ]]>

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct PhysicsSceneLoadScope : IDisposable
```

## Constructors

| Constructor                                                                                                                  | Description                                  |
| ---------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| [PhysicsSceneLoadScope(UnityEngine.PhysicsScene)](/engine/6000.7/script-reference/unityengine/physicssceneloadscope/ctor.md) | Construct a new physics scene loading scope. |

## Properties

| Property                                                                            | Description                               |
| ----------------------------------------------------------------------------------- | ----------------------------------------- |
| [scene](/engine/6000.7/script-reference/unityengine/physicssceneloadscope/scene.md) | The physics scene used within this scope. |

## Methods

| Method                                                                                  | Description                                         |
| --------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [Dispose](/engine/6000.7/script-reference/unityengine/physicssceneloadscope/dispose.md) | Dispose of the current physics scene loading scope. |
