Navigation
API > API/Runtime > API/Runtime/SkeletalMeshDescription > API/Runtime/SkeletalMeshDescription/FSkeletalMeshAttributes
Description
Morph Target Methods Register a new morph target with the given name. The attribute name will encode the user-defined morph target name and it will be listed in GetMorphTargetNames(). Returns true_ if the morph target was successfully registered. Returns false_ if the attribute was already registered or if `InMorphTargetName_ is empty. The position delta is stored as a vertex attributes, and the optional normal is stored as a vertex instance attribute to allow for hard edges on morph targets.
| Name | RegisterMorphTargetAttribute |
| Type | function |
| Header File | /Engine/Source/Runtime/SkeletalMeshDescription/Public/SkeletalMeshAttributes.h |
| Include Path | #include "SkeletalMeshAttributes.h" |
| Source | /Engine/Source/Runtime/SkeletalMeshDescription/Private/SkeletalMeshAttributes.cpp |
bool RegisterMorphTargetAttribute
(
const FName InMorphTargetName,
const bool bIncludeNormals
)
Parameters
| Name | Remarks |
|---|---|
| InMorphTargetName | The name of the morph target to add. Cannot be empty. |
| bIncludeNormals | Set to true if per-vertex instance normals (Z-tangent) should be included. Otherwise the normals will be automatically computed and only the position delta vertex attribute registered. |