Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAnimationAttributeIdentifierExt-
Description
Constructs a valid FAnimationAttributeIdentifier instance. Ensuring that the underlying BoneName exists on the Skeleton for the provided AnimationAsset.
| Name | CreateAttributeIdentifier |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/AttributeIdentifier.h |
| Include Path | #include "Animation/AnimData/AttributeIdentifier.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Animation/AttributeIdentifier.cpp |
UFUNCTION (BlueprintCallable, Category=Attributes, Meta=(ScriptMethod))
static FAnimationAttributeIdentifier CreateAttributeIdentifier
(
UAnimationAsset * AnimationAsset,
const FName AttributeName,
const FName BoneName,
UScriptStruct * AttributeType,
bool bValidateExistsOnAsset
)
Valid FAnimationCurveIdentifier if the operation was successful
Parameters
| Name | Remarks |
|---|---|
| AnimationAsset | Animation asset to retrieve Skeleton from |
| AttributeName | Name of the attribute |
| BoneName | Name of the bone this attribute should be attributed to |
| AttributeType | Type of the underlying data (to-be) stored by this attribute |
| bValidateExistsOnAsset | Whether or not the attribute should exist on the AnimationAsset. False by default. |