Class TimelinePlaybackControls
Use the TimelinePlaybackControls to manage the Timeline window's playback state, playhead location, and play range.
Inherited Members
Namespace: UnityEditor.Timeline
Assembly: solution.dll
Syntax
public sealed class TimelinePlaybackControls
Methods
Name | Description |
---|---|
GetCurrentFrame(Context) | Retrieves the location of the timeline playhead in frames. |
GetCurrentTime(Context) | Retrieves the location of the timeline playhead in seconds. |
GoToFirstFrame() | Moves the playhead to the first frame. |
GoToLastFrame() | Moves the playhead to the last frame. |
NextFrame() | Moves the playhead to the next frame. |
Pause() | Pauses playback. |
Play() | Starts playback. |
PreviousFrame() | Moves the playhead to the previous frame. |
SetCurrentFrame(int, Context) | Moves the playhead to a specific frame. |
SetCurrentTime(double, Context) | Moves the playhead to a specific time. |