FAnimationUtils::HasUniformKeySpacing

Checks a set of key times to see if the spacing is uniform or non-uniform.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/AnimationUtils.h

Include

#include "AnimationUtils.h"

Source

/Engine/Source/Runtime/Engine/Private/Animation/AnimationUtils.cpp

Syntax

static bool HasUniformKeySpacing
(
    int32 NumFrames,
    const TArray< float > & Times
)

Remarks

Checks a set of key times to see if the spacing is uniform or non-uniform.

If there are as many times as frames, they are automatically assumed to be uniformly spaced.

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.

Returns

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

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss