# PhysicsWorld.Snapshot

> An opaque, point-in-time capture of a PhysicsWorld simulation state, produced by PhysicsWorld.CreateSnapshot. Restore it into the same world with PhysicsWorld.ApplySnapshot, or create a new world from it with PhysicsWorld.Create.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct PhysicsWorld.Snapshot : IDisposable
```

## Remarks

A snapshot owns native memory and must be disposed after use. A snapshot is only valid for the same Unity build that produced it and is not a portable on-disk format.

## Properties

| Property                                                                                          | Description                                         |
| ------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [IsCreated](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/snapshot/iscreated.md) | Whether this snapshot holds a valid captured image. |
| [Length](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/snapshot/length.md)       | The size of the snapshot image in bytes.            |

## Methods

| Method                                                                                        | Description                                      |
| --------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [Dispose](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/snapshot/dispose.md) | Release the native memory held by this snapshot. |
