# SetPlaybackState(PlaybackState)

> Use this method with the results of an earlier call to ParticleSystem.GetPlaybackState, in order to restore the Particle System to the state stored in the playbackState object.

## Definition

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

```csharp
public void SetPlaybackState(ParticleSystem.PlaybackState playbackState)
```

### Parameters

**** (\[PlaybackState]\(/engine/6000.0/script-reference/unityengine/particlesystem/playbackstate)): The PlaybackState to apply to the Particle System.

### Remarks

To fully restore a Particle System to a previous state, use this method along with [ParticleSystem.SetParticles](/engine/6000.0/script-reference/unityengine/particlesystem/setparticles.md) and [ParticleSystem.SetTrails](/engine/6000.0/script-reference/unityengine/particlesystem/settrails.md).

Additional Resources: [ParticleSystem.GetPlaybackState](/engine/6000.0/script-reference/unityengine/particlesystem/getplaybackstate.md), [ParticleSystem.SetParticles](/engine/6000.0/script-reference/unityengine/particlesystem/setparticles.md), [ParticleSystem.SetTrails](/engine/6000.0/script-reference/unityengine/particlesystem/settrails.md).
