Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UAnimationAsset
- UAnimSequenceBase
- UAnimCompositeBase
- UAnimComposite
- UAnimMontage
- UAnimSequence
- UAnimStreamable
- UBlendSpace
- UAimOffsetBlendSpace
- UBlendSpace1D
- UAimOffsetBlendSpace1D
- UPoseAsset
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AnimationAsset.h |
| Include | #include "Animation/AnimationAsset.h" |
Syntax
UCLASS (Abstract, BlueprintType, MinimalAPI)
class UAnimationAsset :
public UObject ,
public IInterface_AssetUserData ,
public IInterface_PreviewMeshProvider
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< class UAssetMappingTable > | AssetMappingTable | Asset mapping table when ParentAsset is set | |
| TArray< TObjectPtr< UAssetUserData > > | AssetUserData | Array of user data stored with the asset | |
| TArray< TObjectPtr< class UAnimationAsset > > | ChildrenAssets | Note this is transient as they're added as they're loaded | |
| TObjectPtr< class UAnimationAsset > | ParentAsset | Parent asset is used for AnimMontage when it derives all settings but remap animation asset. | |
| TObjectPtr< class UPoseAsset > | PreviewPoseAsset | The default skeletal mesh to use when previewing this asset - this only applies when you open Persona using this asset | |
| TObjectPtr< class UThumbnailInfo > | ThumbnailInfo | Information for thumbnail rendering |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddMetaData
(
UAnimMetaData* MetaDataInstance |
||
| void | |||
| UAnimMetaData * | FindMetaDataByClass
(
const TSubclassOf< UAnimMetaData > MetaDataClass |
Returns the first metadata of the specified class | |
| T * | Templatized version of FindMetaDataByClass that handles casting for you | ||
| bool | GetAllAnimationSequencesReferred
(
TArray< class UAnimationAsset* >& AnimationSequences, |
Retrieve all animations that are used by this asset | |
| const UAssetMappingTable * | |||
| int32 | |||
| float | This is used in editor only when used for transition getter this doesn't mean max time. | ||
| const TArray< UAnimMetaData * > & | GetMetaData () |
Get available Metadata within the animation asset | |
| float | |||
| USkeleton * | GetSkeleton () |
||
| FGuid | |||
| FGuid | |||
| TArray< FName > * | Return a list of unique marker names for blending compatibility | ||
| void | HandleAnimReferenceCollection
(
TArray< UAnimationAsset* >& AnimationAssets, |
Helper function for GetAllAnimationSequencesReferred, it adds itself first and call GetAllAnimationSEquencesReferred. | |
| bool | |||
| bool | Return true if this is valid additive animation false otherwise | ||
| void | OnSetSkeleton
(
USkeleton* NewSkeleton |
||
| void | |||
| bool | RemapAsset
(
UAnimationAsset* SourceAsset, |
||
| void | RemapTracksToNewSkeleton
(
USkeleton* NewSkeleton, |
||
| void | RemoveMetaData
(
TArrayView< UAnimMetaData* > MetaDataInstances |
||
| void | RemoveMetaData
(
UAnimMetaData* MetaDataInstance |
||
| void | ReplaceReferredAnimations
(
const TMap< UAnimationAsset*, UAnimationAsset* >& ReplacementMap |
Replace this assets references to other animations based on ReplacementMap | |
| bool | ReplaceSkeleton
(
USkeleton* NewSkeleton, |
Replace Skeleton | |
| void | ResetSkeleton
(
USkeleton* NewSkeleton |
||
| void | SetParentAsset
(
UAnimationAsset* InParentAsset |
Parent Asset related function. Used by editor | |
| void | SetPreviewSkeletalMesh
(
USkeletalMesh* PreviewMesh |
Sets or updates the preview skeletal mesh | |
| void | SetSkeleton
(
USkeleton* NewSkeleton |
||
| void | SetSkeletonVirtualBoneGuid
(
FGuid Guid |
||
| void | TickAssetPlayer
(
FAnimTickRecord& Instance, |
Advances the asset player instance | |
| void | We have to update whenever we have anything loaded | ||
| void | |||
| void | Validate our stored data against our skeleton and update accordingly |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetAssetRegistryTags
(
FAssetRegistryTagsContext Context |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects | |
| void | GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
||
| EDataValidationResult | IsDataValid
(
FDataValidationContext& Context |
Generic function to validate objects during changelist validations, etc. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Overridden from IInterface_AssetUserData
| Type | Name | Description | |
|---|---|---|---|
| void | AddAssetUserData
(
UAssetUserData* InUserData |
||
| const TArray< UAssetUserData * > * | |||
| UAssetUserData * | GetAssetUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |
Returns an instance of the provided AssetUserData class if it's contained in the target asset. | |
| void | RemoveUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |
Overridden from IInterface_PreviewMeshProvider
| Type | Name | Description | |
|---|---|---|---|
| USkeletalMesh * | Get the preview mesh for this asset | ||
| USkeletalMesh * | GetPreviewMesh
(
bool bFindIfNotSet |
Get the preview mesh for this asset, non const. | |
| void | SetPreviewMesh
(
USkeletalMesh* PreviewMesh, |
IInterface_PreviewMeshProvider interface |