Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FAnimationUtils
Description
Checks a set of key times to see if the spacing is uniform or non-uniform. Note: If there are as many times as frames, they are automatically assumed to be uniformly spaced. Note: If there are two or fewer times, they are automatically assumed to be uniformly spaced.
Checks a set of key times to see if the spacing is uniform or non-uniform. Note: If there are as many times as frames, they are automatically assumed to be uniformly spaced. Note: If there are two or fewer times, they are automatically assumed to be uniformly spaced.
| Name | HasUniformKeySpacing |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/AnimationUtils.h |
| Include Path | #include "AnimationUtils.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Animation/AnimationUtils.cpp |
static bool HasUniformKeySpacing
(
int32 NumFrames,
const TArray < float > & Times
)
true if the keys are uniformly spaced (or one of the trivial conditions is detected). false if any key spacing is greater than 1e-4 off.
Parameters
| Name | Remarks |
|---|---|
| NumFrames | The number of frames in the source animation data |
| Times | The array of key times |
| AnimSeq | The animation sequence the Times array is associated with |
| Times | The array of key times |