# GetPhysicsScene2D(Scene)

> An extension method that returns the 2D physics Scene from the Scene.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public static PhysicsScene2D GetPhysicsScene2D(this Scene scene)
```

### Parameters

**** (\[Scene]\(/engine/6000.7/script-reference/unityengine/scenemanagement/scene)): The Scene from which to return the 2D physics Scene.

### Returns

| Type                                                                            | Description                             |
| ------------------------------------------------------------------------------- | --------------------------------------- |
| [PhysicsScene2D](/engine/6000.7/script-reference/unityengine/physicsscene2d.md) | The 2D physics Scene used by the Scene. |

### Remarks

Returns the [PhysicsScene2D](/engine/6000.7/script-reference/unityengine/physicsscene2d.md) that is assigned to the selected [Scene](/engine/6000.7/script-reference/unityengine/scenemanagement/scene.md).  The [Scene](/engine/6000.7/script-reference/unityengine/scenemanagement/scene.md) may have created its own local 2D physics Scene in which case this provides access to that. Alternately the [Scene](/engine/6000.7/script-reference/unityengine/scenemanagement/scene.md) may be using the default 2D physics Scene ([\_defaultPhysicsScene](/engine/6000.7/script-reference/unityengine/physics2d/defaultphysicsscene.md)) in which case that will be returned instead.

Additional Resources: [PhysicsScene2D](/engine/6000.7/script-reference/unityengine/physicsscene2d.md), [Scene](/engine/6000.7/script-reference/unityengine/scenemanagement/scene.md)
