UBlendSpace::GetPlayLength
#include "Animation/BlendSpace.h"
Access: public
Specifiers: virtualconstoverride
Description
Always returns 1.f for a blend space, since its playback position is normalized to the [0,1] range rather than measured in seconds like a sequence's SequenceLength.
Caveats & Gotchas
- • Only meaningful in editor-only code paths such as transition getters — don't rely on it for runtime duration calculations, since it never reflects the actual length of the currently blended samples.
- • For the real duration of the samples currently playing, use the sample data's own length calculation instead of this function.
Signature
virtual float GetPlayLength() const override { return 1.f; } Return Type
float Example
Normalized time, not seconds C++
const float NormalizedLength = BlendSpaceAsset->GetPlayLength(); // always 1.f See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?