# LocalPhysicsMode

> Provides options for 2D and 3D local physics.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.SceneManagement](/engine/6000.0/script-reference/unityengine/scenemanagement.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
[Flags]
public enum LocalPhysicsMode
```

## Remarks

By default, when a [Scene](/engine/6000.0/script-reference/unityeditor/searchservice/scene.md) is created or loaded, any 2D or 3D physics component added to a GameObject within the Scene is added to the default physics Scene.  Each [Scene](/engine/6000.0/script-reference/unityeditor/searchservice/scene.md) however has the ability to create and own its own (local) 2D and/or 3D physics Scene.  This option can be used when creating or loading a Scene to specify whether a 2D and/or 3D physics Scene should be created.

When a [Scene](/engine/6000.0/script-reference/unityeditor/searchservice/scene.md) creates its own 2D and/or 3D physics Scene, the lifetime of the physics Scene(s) is the same as the [Scene](/engine/6000.0/script-reference/unityeditor/searchservice/scene.md) i.e. if the [Scene](/engine/6000.0/script-reference/unityeditor/searchservice/scene.md) is destroyed/unloaded then so are any created physics Scenes.

Additional Resources: [CreateSceneParameters](/engine/6000.0/script-reference/unityengine/scenemanagement/createsceneparameters.md), [LoadSceneParameters](/engine/6000.0/script-reference/unityengine/scenemanagement/loadsceneparameters.md),  [SceneManager.CreateScene](/engine/6000.0/script-reference/unityengine/scenemanagement/scenemanager/createscene.md), [SceneManager.LoadScene](/engine/6000.0/script-reference/unityengine/scenemanagement/scenemanager/loadscene.md) and [SceneManager.LoadSceneAsync](/engine/6000.0/script-reference/unityengine/scenemanagement/scenemanager/loadsceneasync.md).

## Fields

| Value                                                                                                  | Description                                                                                                                            |
| ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| [None](/engine/6000.0/script-reference/unityengine/scenemanagement/localphysicsmode/none.md)           | No local 2D or 3D physics Scene will be created.                                                                                       |
| [Physics2D](/engine/6000.0/script-reference/unityengine/scenemanagement/localphysicsmode/physics2d.md) | A local 2D physics Scene will be created and owned by the [Scene](/engine/6000.0/script-reference/unityeditor/searchservice/scene.md). |
| [Physics3D](/engine/6000.0/script-reference/unityengine/scenemanagement/localphysicsmode/physics3d.md) | A local 3D physics Scene will be created and owned by the [Scene](/engine/6000.0/script-reference/unityeditor/searchservice/scene.md). |
