Navigation
Unreal Engine C++ API Reference > Runtime > Engine > FAnimationUtils
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/AnimationUtils.h |
Include | #include "AnimationUtils.h" |
Source | /Engine/Source/Runtime/Engine/Private/Animation/AnimationUtils.cpp |
static bool HasUniformKeySpacing
&40;
int32 NumFrames,
const TArray< float > & Times
&41;
Remarks
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. 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 | Description |
---|---|
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 |