Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetPlayState<U>(U)

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

Definition

GetPlayState<T>(T)

public static PlayState GetPlayState<U>(this U playable) where U : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

Returns

Type

Description

PlayStateThe current PlayState of the Playable.

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.
PlayState.Delayed: The delay is elapsed during the evaluation of the PlayableGraph, the Playable will not start as long as there is still a delay.
Use this templated extension method on any type that inherits from IPlayable.