Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation > API/Runtime/Engine/Animation/AnimData
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include | #include "Animation/AnimData/IAnimationDataController.h" |
Syntax
class IAnimationDataController
Variables
| Type | Name | Description | |
|---|---|---|---|
| UE::FChangeTransactor | ChangeTransactor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddAttribute
(
const FAnimationAttributeIdentifier& AttributeIdentifier, |
Adds a new attribute with the provided information. | |
| bool | AddBoneCurve
(
FName BoneName, |
||
| int32 | AddBoneTrack
(
FName BoneName, |
Adds a new bone animation track for the provided name. | |
| bool | AddCurve
(
const FAnimationCurveIdentifier& CurveId, |
Adds a new curve with the provided information. | |
| bool | CheckOuterClass
(
UClass* InClass |
Verifies whether or not the Model's outer object is (or is derived from) the specified UClass | |
| void | CloseBracket
(
bool bShouldTransact |
Closes a previously opened interaction bracket, used for combining a set of controller actions. | |
| void | ConditionalAction
(
bool bCondition, |
||
| FBracket | ConditionalBracket
(
const FText& Description, |
||
| FTransaction | ConditionalTransaction
(
const FText& Description, |
||
| FFrameNumber | ConvertSecondsToFrameNumber
(
double Seconds |
Returns the final frame number calculating according to the Model its frame-rate, additionally outputs log information for invalid/loss of precision | |
| bool | DuplicateAttribute
(
const FAnimationAttributeIdentifier& AttributeIdentifier, |
Duplicated the attribute (curve) with the identifier. | |
| bool | DuplicateCurve
(
const FAnimationCurveIdentifier& CopyCurveId, |
Duplicated the curve with the identifier. | |
| void | FindOrAddCurveNamesOnSkeleton
(
USkeleton* Skeleton, |
Updates the curve names with the provided skeleton, if a display name is not found it will be added thus modifying the skeleton. | |
| FString | GetCurveTypeValueName
(
ERawCurveTrackTypes InType |
Returns the string representation of the provided curve enum type value | |
| const IAnimationDataModel *const | GetModel () |
||
| TScriptInterface< IAnimationDataModel > | |||
| void | Initializes model data structures | ||
| int32 | InsertBoneTrack
(
FName BoneName, |
Inserts a new bone animation track for the provided name, at the provided index. | |
| bool | IsSupportedCurveType
(
ERawCurveTrackTypes CurveType |
Returns whether or not the supplied curve type is supported by the controller functionality | |
| void | |||
| void | Functionality used by FOpenBracketAction and FCloseBracketAction to broadcast their equivalent notifies without actually opening a bracket. | ||
| void | Broadcast a EAnimDataModelNotifyType::Populated notify. | ||
| void | OpenBracket
(
const FText& InTitle, |
Opens an interaction bracket, used for combining a set of controller actions. | |
| void | PopulateWithExistingModel
(
TScriptInterface< IAnimationDataModel > InModel |
Copies any animation relevant data from an already existing IAnimationDataModel object | |
| int32 | RemoveAllAttributes
(
bool bShouldTransact |
Removes all stored attributes. | |
| int32 | RemoveAllAttributesForBone
(
const FName& BoneName, |
Removes all attributes for the specified bone name, if any. | |
| void | RemoveAllBoneTracks
(
bool bShouldTransact |
Removes all existing Bone Animation tracks. | |
| void | RemoveAllCurvesOfType
(
ERawCurveTrackTypes SupportedCurveType, |
Removes all the curves of the provided type. | |
| bool | RemoveAttribute
(
const FAnimationAttributeIdentifier& AttributeIdentifier, |
Removes an attribute, if found, with the provided information. | |
| bool | RemoveAttributeKey
(
const FAnimationAttributeIdentifier& AttributeIdentifier, |
Remove a single key from the attribute with provided identifier. | |
| bool | RemoveBoneTrack
(
FName BoneName, |
Removes an existing bone animation track with the provided name. | |
| bool | RemoveBoneTracksMissingFromSkeleton
(
const USkeleton* Skeleton, |
Removes any bone track for which the name was not found in the provided skeleton. | |
| bool | RemoveCurve
(
const FAnimationCurveIdentifier& CurveId, |
Remove the curve with provided identifier. | |
| bool | RemoveCurveKey
(
const FAnimationCurveIdentifier& CurveId, |
Remove a single key from the curve with provided identifier and name. | |
| bool | RemoveTransformCurveKey
(
const FAnimationCurveIdentifier& CurveId, |
Removes a single key for the transform curve with provided identifier. | |
| bool | RenameCurve
(
const FAnimationCurveIdentifier& CurveToRenameId, |
Renames the curve with provided identifier. | |
| void | Report
(
ELogVerbosity::Type Verbosity, |
||
| void | ReportError
(
const FText& Message |
||
| void | ReportErrorf
(
const FmtType& Fmt, |
||
| void | Reportf
(
ELogVerbosity::Type Verbosity, |
||
| void | Reportf
(
ELogVerbosity::Type LogVerbosity, |
||
| void | ReportMessage
(
const UObject* ErrorObject, |
||
| void | ReportObjectErrorf
(
const UObject* ErrorObject, |
||
| void | ReportObjectWarningf
(
const UObject* ErrorObject, |
||
| void | ReportWarning
(
const FText& Message |
||
| void | ReportWarningf
(
const FmtType& Fmt, |
||
| void | ResetModel
(
bool bShouldTransact |
Resets all data stored in the model, broadcasts a EAnimDataModelNotifyType::Reset and wraps all actions within BracketOpened/BracketClosed notifies. | |
| void | Resize
(
float Length, |
||
| void | ResizeInFrames
(
FFrameNumber NewLengthInFrames, |
Sets the total play-able length in seconds and resizes curves. | |
| void | ResizeNumberOfFrames
(
FFrameNumber NewLengthInFrames, |
||
| void | ResizePlayLength
(
float NewLength, |
||
| bool | ScaleCurve
(
const FAnimationCurveIdentifier& CurveId, |
Scales the curve with provided identifier. | |
| bool | SetAttributeKey
(
const FAnimationAttributeIdentifier& AttributeIdentifier, |
Sets a single key for the attribute with provided identifier. | |
| bool | SetAttributeKeys
(
const FAnimationAttributeIdentifier& AttributeIdentifier, |
Replace the keys for the attribute with provided identifier. | |
| bool | Removes an existing bone animation track with the provided name. | ||
| bool | Removes an existing bone animation track with the provided name. | ||
| bool | SetCurveAttributes
(
const FAnimationCurveIdentifier& CurveId, |
Changes the attributes of the curve with provided identifier. | |
| bool | SetCurveColor
(
const FAnimationCurveIdentifier& CurveId, |
Changes the color of the curve with provided identifier. | |
| bool | SetCurveComment
(
const FAnimationCurveIdentifier& CurveId, |
Changes the comment of the curve with provided identifier. | |
| bool | SetCurveFlag
(
const FAnimationCurveIdentifier& CurveId, |
Set an individual flag for the curve with provided identifier. | |
| bool | SetCurveFlags
(
const FAnimationCurveIdentifier& CurveId, |
Replace the flags for the curve with provided identifier. | |
| bool | SetCurveKey
(
const FAnimationCurveIdentifier& CurveId, |
Sets a single key for the curve with provided identifier and name. | |
| bool | SetCurveKeys
(
const FAnimationCurveIdentifier& CurveId, |
Replace the keys for the curve with provided identifier and name. | |
| void | SetFrameRate
(
FFrameRate FrameRate, |
Sets the frame rate according to which the bone animation is expected to be sampled. | |
| void | SetModel
(
TScriptInterface< IAnimationDataModel > InModel |
Sets the AnimDataModel instance this controller is supposed to be targeting | |
| void | SetNumberOfFrames
(
FFrameNumber NewLengthInFrames, |
Sets the total play-able length in seconds. | |
| void | SetPlayLength
(
float Length, |
||
| bool | SetTransformCurveKey
(
const FAnimationCurveIdentifier& CurveId, |
Sets a single key for the transform curve with provided identifier. | |
| bool | SetTransformCurveKeys
(
const FAnimationCurveIdentifier& CurveId, |
Replace the keys for the transform curve with provided identifier. | |
| bool | SetTypedAttributeKey
(
const FAnimationAttributeIdentifier& AttributeIdentifier, |
Sets a single key for the attribute with provided identifier. | |
| bool | SetTypedAttributeKeys
(
const FAnimationAttributeIdentifier& AttributeIdentifier, |
Replace the keys for the attribute with provided identifier. | |
| void | UpdateAttributesFromSkeleton
(
const USkeleton* Skeleton, |
Removes any bone attribute for which the name was not found in the provided skeleton. | |
| bool | UpdateBoneTrackKeys
(
FName BoneName, |
Sets a range of keys for an existing bone animation track with the provided name. | |
| bool | UpdateBoneTrackKeys
(
FName BoneName, |
Sets a range of keys for an existing bone animation track with the provided name. | |
| void | UpdateCurveNamesFromSkeleton
(
const USkeleton* Skeleton, |
Updates the display name values for any stored curve, with the names being retrieved from the provided skeleton. | |
| void | UpdateWithSkeleton
(
USkeleton* TargetSkeleton, |
Updates/removes/remaps contained animation data according to the newly assigned skeleton | |
| void | Ensures that a valid model is currently targeted |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FScopedBracket | RAII helper to define a scoped-based bracket, opens and closes a controller bracket automatically |
Typedefs
| Name | Description |
|---|---|
| FBracket | |
| FTransaction |
Constants
| Name | Description |
|---|---|
| DefaultCurveFlags |