# SetPlayState<U>(U, PlayState)

> Changes the current PlayState of the Playable.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Playables](/engine/6000.5/script-reference/unityengine/playables.md)
* **Assembly:** UnityEngine.CoreModule

## SetPlayState\<T>(T, PlayState)

> **Warning:**
>
> **Deprecated.** SetPlayState() has been deprecated. Use Play(), Pause() or SetDelay() instead

```csharp
public static void SetPlayState<U>(this U playable, PlayState value) where U : struct, IPlayable
```

### Parameters

**** (T): The [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) used by this operation.**** (\[PlayState]\(/engine/6000.5/script-reference/unityengine/playables/playstate)): The new PlayState.

### Remarks

PlayState.Playing: The local time of this [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) will be updated during the evaluation of the [PlayableGraph](/engine/6000.5/script-reference/unityengine/playables/playablegraph.md).

PlayState.Paused: The local time of this [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) will not be updated during the evaluation of the [PlayableGraph](/engine/6000.5/script-reference/unityengine/playables/playablegraph.md).

Use this templated extension method on any type that inherits from [IPlayable](/engine/6000.5/script-reference/unityengine/playables/iplayable.md).
