Navigation
API > API/Plugins > API/Plugins/MetaHumanCharacterEditor > API/Plugins/MetaHumanCharacterEditor/UMetaHumanCharacterEditorSubsyst-
Description
Fits the Character face state to the conformed mesh of the input asset, which must be a SkelMesh or Static Mesh which has the correct number of vertices. In addition, the user can (optionally) in the case of a StaticMesh pass in up to three additional meshes for left eye, right eye and teeth, which if not null will be used in the fitting. Note that for the StaticMesh, if the extra meshes are present, they will be used and the flags in the import options will be ignored. Eye and Teeth meshes must contain the correct number of vertices for a MetaHuman.
| Name | ImportFromTemplate |
| 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 |
EImportErrorCode ImportFromTemplate
(
TNotNull< UMetaHumanCharacter * > InMetaHumanCharacter,
TNotNull< UObject * > InTemplateMesh,
UObject * InTemplateLeftEyeMesh,
UObject * InTemplateRightEyeMesh,
UObject * InTemplateTeethMesh,
const FImportFromTemplateParams & InImportParams
)