FMontageSubStepper::GetRemainingPlayTimeToSectionEnd
#include "Animation/AnimMontage.h"
Access: public
Description
Computes how much playback time remains between the given original-space position and the end of the current section, accounting for any TimeStretchCurve on the montage.
Caveats & Gotchas
- • Not const — despite only returning a value, it can lazily update Cached_P_Target/Cached_P_Original internally as a side effect of the computation.
- • For montages with a TimeStretchCurve, the result is not simply the section end time minus In_P_Original; it factors in the curve's variable playback rate across the remaining stretch markers.
Signature
float GetRemainingPlayTimeToSectionEnd(const float In_P_Original); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| In_P_Original | const float | Current montage position in authored ("original") space. | — |
Return Type
float Example
Estimating time to a section boundary C++
// Engine-internal usage
float TimeToEnd = MontageSubStepper.GetRemainingPlayTimeToSectionEnd(CurrentPosition); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?