Navigation
API > API/Plugins > API/Plugins/MetaHumanCharacterEditor > API/Plugins/MetaHumanCharacterEditor/UMetaHumanCharacterEditorSubsyst-
Description
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 |
UFUNCTION (BlueprintCallable, Category="Conforming")
EImportErrorCode ImportFromTemplate
(
UMetaHumanCharacter * InCharacter,
UObject * InTemplateMesh,
UObject * InTemplateLeftEyeMesh,
UObject * InTemplateRightEyeMesh,
UObject * InTemplateTeethMesh,
const FImportFromTemplateParams & InImportParams
)
code indicating success or failure
Parameters
| Name | Remarks |
|---|---|
| InCharacter | The character to import the template mesh(es) to |
| InTemplateMesh | The head mesh (either StaticMesh or SkelMesh) which much match the topology of a MetaHuman head mesh |
| InTemplateLeftEyeMesh | If not nullptr, must be a StaticMesh for the left eye which much match the topology of a MetaHuman left eye mesh |
| InTemplateRightEyeMesh | If not nullptr, must be a StaticMesh for the right eye which much match the topology of a MetaHuman right eye mesh |
| InTemplateTeethMesh | If not nullptr, must be a StaticMesh for the teeth which much match the topology of a MetaHuman teeth mesh |
| InImportParams | the parameters used during the fitting process |