GetPlayState<U>(U)
Returns the current PlayState of the Playable.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Playables
- Assembly: UnityEngine.CoreModule
GetPlayState<T>(T)
public static PlayState GetPlayState<U>(this U playable) where U : struct, IPlayable
Parameters
The Playable used by this operation.
Returns
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.