Navigation
API > API/Plugins > API/Plugins/AnimNextAnimGraph > API/Plugins/AnimNextAnimGraph/TraitInterfaces
References
| Module | AnimNextAnimGraph |
| Header | /Engine/Plugins/Experimental/AnimNextAnimGraph/Source/AnimNextAnimGraph/Public/TraitInterfaces/ITimeline.h |
| Include | #include "TraitInterfaces/ITimeline.h" |
Syntax
struct FTimelineProgress
Remarks
Timeline Progress
Encapsulates the progress along a timeline.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default construct with no progress. | |||
FTimelineProgress
(
float InPosition, |
Construct with a specific position and duration. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | GetDuration () |
Returns the timeline duration in seconds. | |
| float | GetPosition () |
Returns the timeline position in seconds. | |
| float | Returns the timeline position as a ratio (0.0 = start of timeline, 1.0 = end of timeline) | ||
| float | GetTimeLeft () |
Returns the time left to play in the timeline. | |
| void | Reset () |
Resets the timeline progress to its initial state. |