Method GetCurrentFrame
GetCurrentFrame(Context)
Retrieves the location of the timeline playhead in frames.
Declaration
public int GetCurrentFrame(TimelinePlaybackControls.Context context = Context.Local)
Parameters
Type | Name | Description |
---|---|---|
TimelinePlaybackControls.Context | context | Use Context with a Sub-Timeline to specify whether the returned value 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. |
Returns
Type | Description |
---|---|
int | The playhead location in frames. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The Window associated with this instance has been destroyed. |
ArgumentException | The context is invalid. |