文档

Unity Engine

Unity Engine

SetPlayState<U>(U, PlayState)

Changes the current PlayState of the Playable.
阅读时间1 分钟最后更新于 1 个月前

Definition

SetPlayState<T>(T, PlayState)

警告
Removed. SetPlayState() has been deprecated. Use Play() or Pause() 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.