UAnimDataController

Unreal Engine C++ API Reference > Developer > AnimationDataController

Inheritance Hierarchy

References

   
Module AnimationDataController
Header /Engine/Source/Developer/AnimationDataController/Public/AnimDataController.h
Include #include "AnimDataController.h"

Syntax

class UAnimDataController :  
    public [UObject](API\Runtime\CoreUObject\UObject\UObject),  
    public [IAnimationDataController](API\Runtime\Engine\Animation\AnimData\IAnimationDataController)  

Constructors

Type Name Description
  UAnimDataController ()  

Overridden from IAnimationDataController

Type Name Description
bool AddAttribute ( const FAnimationAttributeIdentifier..., bool bShouldTransact ) Adds a new attribute with the provided information.
bool AddBoneCurve ( FName BoneName, bool bShouldTransact )  
bool AddCurve ( const FAnimationCurveIdentifier& C..., int32 CurveFlags, bool bShouldTransact ) Adds a new curve with the provided information.
void CloseBracket ( bool bShouldTransact ) Closes a previously opened interaction bracket, used for combining a set of controller actions.
bool DuplicateAttribute ( const FAnimationAttributeIdentifier..., const FAnimationAttributeIdentifier..., bool bShouldTransact ) Duplicated the attribute (curve) with the identifier.
bool DuplicateCurve ( const FAnimationCurveIdentifier& C..., const FAnimationCurveIdentifier& N..., bool bShouldTransact ) Duplicated the curve with the identifier.
const IAnima... GetModel ()  
TScriptInter... GetModelInterface ()  
void InitializeModel () Initializes model data structures
void NotifyBracketClosed ()  
void NotifyBracketOpen () Functionality used by FOpenBracketAction and FCloseBracketAction to broadcast their equivalent notifies without actually opening a bracket.
void NotifyPopulated () Broadcast a EAnimDataModelNotifyType::Populated notify.
void OpenBracket ( const FText& InTitle, bool bShouldTransact ) Opens an interaction bracket, used for combining a set of controller actions.
void PopulateWithExistingModel ( TScriptInterface< IAnimationDataMod... ) Copies any animation relevant data from an already existing IAnimationDataModel object
int32 RemoveAllAttributes ( bool bShouldTransact ) Removes all stored attributes.
int32 RemoveAllAttributesForBone ( const FName& BoneName, bool bShouldTransact ) Removes all attributes for the specified bone name, if any.
void RemoveAllBoneTracks ( bool bShouldTransact ) Removes all existing Bone Animation tracks.
void RemoveAllCurvesOfType ( ERawCurveTrackTypes SupportedCurveT..., bool bShouldTransact ) Removes all the curves of the provided type.
bool RemoveAttribute ( const FAnimationAttributeIdentifier..., bool bShouldTransact ) Removes an attribute, if found, with the provided information.
bool RemoveAttributeKey ( const FAnimationAttributeIdentifier..., float Time, bool bShouldTransact ) Remove a single key from the attribute with provided identifier.
bool RemoveBoneTrack ( FName BoneName, bool bShouldTransact ) Removes an existing bone animation track with the provided name.
bool RemoveBoneTracksMissingFromSkeleton ( const USkeleton* Skeleton, bool bShouldTransact ) Removes any bone track for which the name was not found in the provided skeleton.
bool RemoveCurve ( const FAnimationCurveIdentifier& C..., bool bShouldTransact ) Remove the curve with provided identifier.
bool RemoveCurveKey ( const FAnimationCurveIdentifier& C..., float Time, bool bShouldTransact ) Remove a single key from the curve with provided identifier and name.
bool RemoveTransformCurveKey ( const FAnimationCurveIdentifier& C..., float Time, bool bShouldTransact ) Removes a single key for the transform curve with provided identifier.
bool RenameCurve ( const FAnimationCurveIdentifier& C..., const FAnimationCurveIdentifier& N..., bool bShouldTransact ) Renames the curve with provided identifier.
void ResetModel ( bool bShouldTransact ) Resets all data stored in the model, broadcasts a EAnimDataModelNotifyType::Reset and wraps all actions within BracketOpened/BracketClosed notifies.
void ResizeInFrames ( FFrameNumber NewLengthInFrames, FFrameNumber T0, FFrameNumber T1, bool bShouldTransact ) Sets the total play-able length in seconds and resizes curves.
void ResizeNumberOfFrames ( FFrameNumber NewLength, FFrameNumber T0, FFrameNumber T1, bool bShouldTransact )  
bool ScaleCurve ( const FAnimationCurveIdentifier& C..., float Origin, float Factor, bool bShouldTransact ) Scales the curve with provided identifier.
bool SetAttributeKey ( const FAnimationAttributeIdentifier..., float Time, const void* KeyValue, const UScriptStruct* TypeStruc..., bool bShouldTransact ) Sets a single key for the attribute with provided identifier.
bool SetAttributeKeys ( const FAnimationAttributeIdentifier..., TArrayView< const float > Times, TArrayView< const void* > KeyV..., const UScriptStruct* TypeStruc..., bool bShouldTransact ) Replace the keys for the attribute with provided identifier.
bool SetBoneTrackKeys ( FName BoneName, const TArray< FVector >& Positiona..., const TArray< FQuat >& RotationalK..., const TArray< FVector >& ScalingKe..., bool bShouldTransact ) Removes an existing bone animation track with the provided name.
bool SetBoneTrackKeys ( FName BoneName, const TArray< FVector3f >& Positio..., const TArray< FQuat4f >& Rotationa..., const TArray< FVector3f >& Scaling..., bool bShouldTransact ) Removes an existing bone animation track with the provided name.
bool SetCurveAttributes ( const FAnimationCurveIdentifier& C..., const FCurveAttributes& Attributes, bool bShouldTransact ) Changes the attributes of the curve with provided identifier.
bool SetCurveColor ( const FAnimationCurveIdentifier& C..., FLinearColor Color, bool bShouldTransact ) Changes the color of the curve with provided identifier.
bool SetCurveFlag ( const FAnimationCurveIdentifier& C..., EAnimAssetCurveFlags Flag, bool bState, bool bShouldTransact ) Set an individual flag for the curve with provided identifier.
bool SetCurveFlags ( const FAnimationCurveIdentifier& C..., int32 Flags, bool bShouldTransact ) Replace the flags for the curve with provided identifier.
bool SetCurveKey ( const FAnimationCurveIdentifier& C..., const FRichCurveKey& Key, bool bShouldTransact ) Sets a single key for the curve with provided identifier and name.
bool SetCurveKeys ( const FAnimationCurveIdentifier& C..., const TArray< FRichCurveKey >& Cur..., bool bShouldTransact ) Replace the keys for the curve with provided identifier and name.
void SetFrameRate ( FFrameRate FrameRate, bool bShouldTransact ) Sets the frame rate according to which the bone animation is expected to be sampled.
void SetModel ( TScriptInterface< IAnimationDataMod... ) Begin IAnimationDataController overrides
void SetNumberOfFrames ( FFrameNumber NewLengthInFrames, bool bShouldTransact ) Sets the total play-able length in seconds.
bool SetTransformCurveKey ( const FAnimationCurveIdentifier& C..., float Time, const FTransform& Value, bool bShouldTransact ) Sets a single key for the transform curve with provided identifier.
bool SetTransformCurveKeys ( const FAnimationCurveIdentifier& C..., const TArray< FTransform >& Transf..., const TArray< float >& TimeKeys, bool bShouldTransact ) Replace the keys for the transform curve with provided identifier.
void UpdateAttributesFromSkeleton ( const USkeleton* Skeleton, bool bShouldTransact ) Removes any bone attribute for which the name was not found in the provided skeleton.
bool UpdateBoneTrackKeys ( FName BoneName, const FInt32Range& KeyRangeToSet, const TArray< FVector3f >& Positio..., const TArray< FQuat4f >& Rotationa..., const TArray< FVector3f >& Scaling..., bool bShouldTransact ) Sets a range of keys for an existing bone animation track with the provided name.
bool UpdateBoneTrackKeys ( FName BoneName, const FInt32Range& KeyRangeToSet, const TArray< FVector >& Positiona..., const TArray< FQuat >& RotationalK..., const TArray< FVector >& ScalingKe..., bool bShouldTransact ) Sets a range of keys for an existing bone animation track with the provided name.
void UpdateWithSkeleton ( USkeleton* TargetSkeleton, bool bShouldTransact ) Updates/removes/remaps contained animation data according to the newly assigned skeleton

Deprecated Functions

Type Name Description
int32 InsertBoneTrack ( FName BoneName, int32 DesiredIndex, bool bShouldTransact ) InsertBoneTrack has been deprecated, use AddBoneTrack instead
void Resize ( float Length, float T0, float T1, bool bShouldTransact ) Resize with length in seconds in deprecated use ResizeInFrames using FFrameNumber instead
void ResizePlayLength ( float NewLength, float T0, float T1, bool bShouldTransact ) ResizePlayLength with length in seconds in deprecated use ResizeNumberOfFrames using FFrameNumber instead
void SetPlayLength ( float Length, bool bShouldTransact ) SetPlayLength with length in seconds in deprecated use SetNumberOfFrames using FFrameNumber instead

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library