engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 所有成员列表
FAnimationUtils类 参考

A collection of useful functions for skeletal mesh animation. 更多...

#include <AnimationUtils.h>

静态 Public 成员函数

static void BuildComponentSpaceTransform (FTransform &OutTransform, int32 BoneIndex, const TArray< FTransform > &BoneSpaceTransforms, const TArray< FBoneData > &BoneData)
 Builds the local-to-component matrix for the specified bone.
 
static void CalculateTrackHeights (const FCompressibleAnimData &CompressibleAnimData, int NumTracks, TArray< int32 > &TrackHeights)
 Computes the 'height' of each track, relative to a given animation linkup. 更多...
 
static ENGINE_API void EnsureAnimSequenceLoaded (UAnimSequence &AnimSeq)
 Makes sure that the animation sequence and all its dependencies required for compression are loaded.
 
static ENGINE_API FString GetAnimationCompressionFormatString (enum AnimationCompressionFormat InFormat)
 Converts an animation compression type into a human readable string 更多...
 
static FString GetAnimationKeyFormatString (enum AnimationKeyFormat InFormat)
 Converts an animation codec format into a human readable string 更多...
 
static ENGINE_API UAnimBoneCompressionSettings * GetDefaultAnimationBoneCompressionSettings ()
 Returns the default animation bone compression settings, can never by null.
 
static ENGINE_API UAnimCurveCompressionSettings * GetDefaultAnimationCurveCompressionSettings ()
 Returns the default animation curve compression settings, can never by null.
 
static ENGINE_API UAnimBoneCompressionSettings * GetDefaultAnimationRecorderBoneCompressionSettings ()
 Returns the default animation bone compression settings for the FAnimRecorder, can never by null.
 
static UObject * GetDefaultAnimSequenceOuter (UAnimSet *InAnimSet, bool bCreateIfNotFound)
 Get default Outer for AnimSequences contained in this AnimSet. 更多...
 
static bool GetForcedRecompressionSetting ()
 Determines the current setting for recompressing all animations upon load. 更多...
 
static bool HasUniformKeySpacing (int32 NumFrames, const TArray< float > &Times)
 Checks a set of key times to see if the spacing is uniform or non-uniform. 更多...
 
static void TallyErrorsFromPerturbation (const FCompressibleAnimData &CompressibleAnimData, int32 NumTracks, const FVector &PositionNudge, const FQuat &RotationNudge, const FVector &ScaleNudge, TArray< FAnimPerturbationError > &InducedErrors)
 Perturbs the bone(s) associated with each track in turn, measuring the maximum error introduced in end effectors as a result
 

详细描述

A collection of useful functions for skeletal mesh animation.

成员函数说明

◆ CalculateTrackHeights()

static void FAnimationUtils::CalculateTrackHeights ( const FCompressibleAnimData &  CompressibleAnimData,
int  NumTracks,
TArray< int32 > &  TrackHeights 
)
static

Computes the 'height' of each track, relative to a given animation linkup.

The track height is defined as the minimal number of bones away from an end effector (end effectors are 0, their parents are 1, etc...)

参数
AnimLinkupThe animation linkup
NumTracksThe number of tracks
TrackHeights[OUT] The computed track heights

◆ GetAnimationCompressionFormatString()

static ENGINE_API FString FAnimationUtils::GetAnimationCompressionFormatString ( enum AnimationCompressionFormat  InFormat)
static

Converts an animation compression type into a human readable string

参数
InFormatThe compression format to convert into a string
返回
The format as a string

◆ GetAnimationKeyFormatString()

static FString FAnimationUtils::GetAnimationKeyFormatString ( enum AnimationKeyFormat  InFormat)
static

Converts an animation codec format into a human readable string

参数
InFormatThe format to convert into a string
返回
The format as a string

◆ GetDefaultAnimSequenceOuter()

static UObject * FAnimationUtils::GetDefaultAnimSequenceOuter ( UAnimSet *  InAnimSet,
bool  bCreateIfNotFound 
)
static

Get default Outer for AnimSequences contained in this AnimSet.

The intent is to use that when Constructing new AnimSequences to put into that set. The Outer will be Package.<AnimSetName>_Group.

参数
bCreateIfNotFoundif true, Group will be created. This is only in the editor.

◆ GetForcedRecompressionSetting()

static bool FAnimationUtils::GetForcedRecompressionSetting ( )
static

Determines the current setting for recompressing all animations upon load.

The default value is False, but may be overridden by an optional field in the base engine INI file.

返回
true if the engine settings request that all animations be recompiled

◆ HasUniformKeySpacing()

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

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.

参数
NumFramesThe number of frames in the source animation data
TimesThe array of key 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.

该类的文档由以下文件生成: