FMontageSubStepper::CurrentSectionIndex
#include "Animation/AnimMontage.h"
Access: private
Description
Index into the montage's CompositeSections array for the section the sub-stepper is currently positioned in.
Caveats & Gotchas
- • Initialized to INDEX_NONE and only becomes valid after Initialize() resolves the montage instance's current section.
- • Advance() can change this mid-tick as playback crosses a section boundary or follows a next-section jump, so don't cache it across multiple Advance() calls without re-reading via GetCurrentSectionIndex().
Signature
int32 CurrentSectionIndex; Return Type
int32 Example
Reading the current section C++
// Engine-internal usage
const int32 SectionIdx = MontageSubStepper.GetCurrentSectionIndex();
if (Montage->CompositeSections.IsValidIndex(SectionIdx))
{
// ...
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?