FMontageSubStepper::AddEvaluationTime
#include "Animation/AnimMontage.h"
Access: public
Specifiers: inline
Description
Queues additional delta time onto the sub-stepper's TimeRemaining for Advance() to consume in subsequent sub-steps.
Caveats & Gotchas
- • Purely additive with no clamping — passing a negative value can leave TimeRemaining negative, which makes HasTimeRemaining() return false even though a step was owed.
- • Only queues the time; it does not itself move the montage position, that happens across one or more following Advance() calls.
Signature
void AddEvaluationTime(float InDeltaTime) { TimeRemaining += InDeltaTime; } Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InDeltaTime | float | Additional delta time to queue for the sub-stepper to consume. | — |
Return Type
void Example
Queuing a frame's delta time before stepping C++
// Engine-internal: FAnimMontageInstance::Advance()
MontageSubStepper.Initialize(*this);
MontageSubStepper.AddEvaluationTime(DeltaTime);
while (MontageSubStepper.HasTimeRemaining())
{
MontageSubStepper.Advance(Position, &BranchingPointMarker);
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?