# IsValid()

> Gets whether the physics Scene is valid or not.

## Definition

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

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

### Returns

| Type                                                          | Description                 |
| ------------------------------------------------------------- | --------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Is the physics scene valid? |

### Remarks

If the physics Scene is associated with a specific [Scene](/engine/6000.7/script-reference/unityengine/scenemanagement/scene.md) which has been destroyed then the physics Scene is no longer valid.  Note that the [\_defaultPhysicsScene](/engine/6000.7/script-reference/unityengine/physics/defaultphysicsscene.md) is always valid.
