FMontageSubStepper::HasTimeRemaining
#include "Animation/AnimMontage.h"
Access: public
Specifiers: constinline
Description
Returns whether the sub-stepper still has unconsumed evaluation time to work through via further Advance() calls.
Caveats & Gotchas
- • Uses UE_SMALL_NUMBER as the threshold rather than checking for exactly zero, so extremely small residual time is treated as "none remaining".
- • Drives the internal stepping loop in FAnimMontageInstance::Advance(); it is not intended to be polled by gameplay code outside that loop.
Signature
bool HasTimeRemaining() const { return (TimeRemaining > UE_SMALL_NUMBER); } Return Type
bool Example
Driving the sub-step loop C++
// Engine-internal usage
while (MontageSubStepper.HasTimeRemaining())
{
MontageSubStepper.Advance(Position, &BranchingPointMarker);
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?