# IsValid()

> Determines whether the physics Scene is valid or not.

## Definition

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

```csharp
public bool IsValid()
```

### Returns

| Type                                                          | Description                        |
| ------------------------------------------------------------- | ---------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True when the physics Scene valid. |

### Remarks

If the physics Scene is associated with a specific [Scene](/engine/6000.0/script-reference/unityeditor/searchservice/scene.md) which has been destroyed then the physics Scene is no longer valid.  Note that the [Physics2D.defaultPhysicsScene](/engine/6000.0/script-reference/unityengine/physics2d/defaultphysicsscene.md) is always valid.
