Navigation
API > API/Plugins > API/Plugins/MetaHumanCharacterEditor > API/Plugins/MetaHumanCharacterEditor/UMetaHumanCharacterEditorSubsyst-
Description
Adapts the given face DNA to fit the character's current body, returning the corrected DNA. Performs CopyBodyJointsToFace and UpdateFaceSkinWeightsFromBodyAndVertexNormals on the input DNA.
| Name | AlignFaceDNAWithBody |
| Type | function |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterEditor/Public/MetaHumanCharacterEditorSubsystem.h |
| Include Path | #include "MetaHumanCharacterEditorSubsystem.h" |
| Source | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterEditor/Private/MetaHumanCharacterEditorSubsystem.cpp |
TSharedPtr < IDNAReader > AlignFaceDNAWithBody
(
TNotNull< UMetaHumanCharacter * > InCharacter,
TSharedPtr < IDNAReader > InFaceDNAReader,
bool bUpdateDescendentFaceJoints
)
Aligned DNA, or the input DNA unchanged if alignment cannot be performed (no body or incompatible)
Parameters
| Name | Remarks |
|---|---|
| InCharacter | Character whose body the DNA is being aligned to |
| InFaceDNAReader | Face DNA to align |
| bUpdateDescendentFaceJoints | If true, descendent face joints are updated from body joints |