Method SetCurrentFrame
SetCurrentFrame(int, Context)
Moves the playhead to a specific frame.
Declaration
public void SetCurrentFrame(int frame, TimelinePlaybackControls.Context context = Context.Local)
Parameters
Type | Name | Description |
---|---|---|
int | frame | The frame to move to. |
TimelinePlaybackControls.Context | context | Use Context with a Sub-Timeline to specify whether the specified frame is relative to the Sub-Timeline or the main Timeline. If the Timeline is not a Sub-Timeline, the context uses local time regardless of the specified context. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The Window associated with this instance has been destroyed. |
ArgumentException | The context is invalid. |