Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetPlayState<U>(U, PlayState)

Changes the current PlayState of the Playable.
Read time 1 minuteLast updated 6 days ago

Definition

SetPlayState<T>(T, PlayState)

Warning
Deprecated. SetPlayState() has been deprecated. Use Play(), Pause() or SetDelay() instead
public static void SetPlayState<U>(this U playable, PlayState value) where U : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

The new PlayState.

Remarks

PlayState.Playing: The local time of this Playable will be updated during the evaluation of the PlayableGraph.
PlayState.Paused: The local time of this Playable will not be updated during the evaluation of the PlayableGraph.
Use this templated extension method on any type that inherits from IPlayable.