RealDocs

UBlendSpace::AnimLength

property Engine Since 4.0
#include "Animation/BlendSpace.h"
Access: public Specifiers: UPROPERTY

Description

The maximum length, in seconds, of any single sample contained in this blend space.

Caveats & Gotchas

  • Not EditAnywhere — this is computed internally (e.g. during PostLoad/validation) rather than authored, so setting it manually will be overwritten.
  • This is the longest individual sample's length, not the effective blended length for a given input — use GetAnimationLengthFromSampleData for the latter.

Signature

UPROPERTY() float AnimLength;

Example

Read the cached maximum length C++
UE_LOG(LogTemp, Log, TEXT("Longest sample in blend space: %f seconds"), MyBlendSpace->AnimLength);

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.