Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UAnimationAsset
- UPoseAsset
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/PoseAsset.h |
| Include | #include "Animation/PoseAsset.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType)
class UPoseAsset : public UAnimationAsset
Remarks
Pose Asset that can be blended by weight of curves
Variables
| Type | Name | Description | |
|---|---|---|---|
| FName | RetargetSource | Base pose to use when retargeting | |
| TSoftObjectPtr< USkeletalMesh > | RetargetSourceAsset | If RetargetSource is set to Default (None), this is asset for the base pose to use when retargeting. | |
| TArray< FTransform > | RetargetSourceAssetReferencePose | When using RetargetSourceAsset, use the post stored here | |
| TObjectPtr< UAnimSequence > | SourceAnimation | ||
| FGuid | SourceAnimationRawDataGUID | GUID cached when the contained poses were last updated according to SourceAnimation - used to keep track of out-of-date/sync data |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UPoseAsset
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddOrUpdatePose
(
const FName& PoseName, |
||
| void | AddOrUpdatePose
(
const FSmartName& PoseName, |
||
| bool | AddOrUpdatePoseWithUniqueName
(
const USkeletalMeshComponent* MeshComponent, |
||
| FName | AddPoseWithUniqueName
(
const USkeletalMeshComponent* MeshComponent |
||
| void | AddReferencePose
(
const FSmartName& PoseName, |
||
| void | AddReferencePose
(
const FName& PoseName, |
||
| void | Resets the retarget source asset. | ||
| bool | ContainsPose
(
const FName& InPoseName |
||
| bool | ContainsPose
(
const FSmartName& InPoseName |
||
| bool | ConvertSpace
(
bool bNewAdditivePose, |
||
| void | CreatePoseFromAnimation
(
UAnimSequence* AnimSequence, |
||
| void | CreatePoseFromAnimation
(
UAnimSequence* AnimSequence, |
||
| int32 | DeleteCurves
(
TArray< FName > CurveNamesToDelete |
||
| int32 | DeletePoses
(
TArray< FName > PoseNamesToDelete |
||
| void | This is utility function that just cares by names to be used by live link this isn't fast. | ||
| bool | GetAnimationPose
(
FCompactPose& OutPose, |
Get Animation Pose from one pose of PoseIndex and with PoseWeight This returns OutPose and OutCurve of one pose of PoseIndex with PoseWeight | |
| bool | GetAnimationPose
(
FAnimationPoseData& OutAnimationPoseData, |
||
| void | GetBaseAnimationPose
(
FCompactPose& OutPose, |
||
| void | GetBaseAnimationPose
(
FAnimationPoseData& OutAnimationPoseData |
||
| int32 | |||
| FName | Returns base pose name, only valid when additive, NAME_None indicates reference pose | ||
| FTransform | GetComponentSpaceTransform
(
FName BoneName, |
Util to return transform of a bone from the pose asset in component space, by walking up tracks in pose asset */ | |
| const TArray< FAnimCurveBase > & | GetCurveData () |
||
| const TArray< FName > | |||
| const int32 | GetCurveIndexByName
(
const FName& InCurveName |
||
| const TArray< FSmartName > | |||
| bool | GetCurveValue
(
const int32 PoseIndex, |
Return value of a curve for a particular pose | |
| const TArray< float > | GetCurveValues
(
const int32 PoseIndex |
||
| bool | GetFullPose
(
int32 PoseIndex, |
Return full (local space, non additive) pose. Will do conversion if PoseAsset is Additive. | |
| int32 | GetNumCurves () |
||
| int32 | GetNumPoses () |
||
| int32 | GetNumTracks () |
||
| const TArray< FName > & | |||
| const int32 | GetPoseIndexByName
(
const FName& InBasePoseName |
||
| const FName | GetPoseNameByIndex
(
int32 InBasePoseIndex |
||
| void | GetPoseNames
(
TArray< FName >& PoseNames |
Returns the name of all contained poses | |
| const TArray< FSmartName > | GetPoseNames () |
||
| const TSoftObjectPtr< USkeletalMesh > & | Returns the retarget source asset soft object pointer. | ||
| const int32 | GetTrackIndexByName
(
const FName& InTrackName |
Find index of a track with a given bone name. Returns INDEX_NONE if not found. | |
| const TArray< FName > & | |||
| FName | GetUniquePoseName
(
UPoseAsset* PoseAsset |
||
| FName | GetUniquePoseName
(
const USkeleton* Skeleton |
||
| FSmartName | GetUniquePoseSmartName
(
USkeleton* Skeleton |
||
| bool | |||
| bool | ModifyPoseName
(
FName OldPoseName, |
||
| bool | ModifyPoseName
(
FName OldPoseName, |
||
| FDelegateHandle | RegisterOnPoseListChanged
(
const FOnPoseListChanged& Delegate |
Registers a delegate to be called after the preview animation has been changed | |
| void | RemovePoseOrCurveNames
(
const TArray< FName >& InNamesToRemove |
Remove poses or curves using the names supplied. | |
| void | RemoveSmartNames
(
const TArray< FName >& InNamesToRemove |
||
| void | RenamePose
(
const FName& OriginalPoseName, |
Renames a specific pose | |
| void | RenamePoseOrCurveName
(
const FName& InOriginalName, |
Rename poses or curves using the names supplied. | |
| void | RenameSmartName
(
const FName& InOriginalName, |
||
| bool | SetBasePoseName
(
const FName& NewBasePoseName |
Set base pose index by name, NAME_None indicates reference pose - returns true if set successfully | |
| void | SetRetargetSourceAsset
(
USkeletalMesh* InRetargetSourceAsset |
Assigns the passed skeletal mesh to the retarget source. | |
| void | UnregisterOnPoseListChanged
(
FDelegateHandle Handle |
Unregisters a delegate to be called after the preview animation has been changed | |
| void | UpdatePoseFromAnimation
(
UAnimSequence* AnimSequence |
Contained poses are re-generated from the provided Animation Sequence | |
| void | Update the retarget data pose from the source, if it exist, else clears the retarget data pose saved in RetargetSourceAssetReferencePose. |
Overridden from UAnimationAsset
| Type | Name | Description | |
|---|---|---|---|
| bool | GetAllAnimationSequencesReferred
(
TArray< UAnimationAsset* >& AnimationSequences, |
Retrieve all animations that are used by this asset | |
| bool | Return true if this is valid additive animation false otherwise | ||
| void | RemapTracksToNewSkeleton
(
USkeleton* NewSkeleton, |
||
| void | ReplaceReferredAnimations
(
const TMap< UAnimationAsset*, UAnimationAsset* >& ReplacementMap |
Replace this assets references to other animations based on ReplacementMap |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
||
| 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 | |
| bool | Called during async load to determine if PostLoad can be called on the loading thread. | ||
| 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. | |
| PRAGMA_ENABLE_DEPRECATION_WARNINGS void | PreSave
(
FObjectPreSaveContext ObjectSaveContext |
Presave function. | |
| PRAGMA_DISABLE_DEPRECATION_WARNINGS void | PreSave
(
const ITargetPlatform* TargetPlatform |
||
| void | Handles reading, writing, and reference collecting using FArchive. |
Typedefs
| Name | Description |
|---|---|
| FOnPoseListChanged | |
| FOnPoseListChangedMulticaster |