FMontageSubStepper::Cached_CombinedPlayRate
#include "Animation/AnimMontage.h"
Access: private
Description
Cached combined play rate (montage rate scale times global rate scale) used to derive PlayRate and DeltaMove without recomputing it every sub-step.
Caveats & Gotchas
- • Set to FLT_MAX by ClearCachedData() to force a recompute — a raw FLT_MAX value here is a sentinel meaning 'stale', not an actual play rate.
- • Recomputed lazily in ConditionallyUpdateCachedData() only when this sentinel is detected, so changing the montage's play rate mid-tick does not retroactively affect an in-flight sub-step until the next recache.
Signature
float Cached_CombinedPlayRate; Return Type
float Example
Forcing a recache after changing play rate C++
// Engine-internal: called when PlayRate or DesiredWeight changes
MontageSubStepper.ClearCachedData(); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?