Navigation
API > API/Plugins > API/Plugins/MetaHumanCharacterPaletteEditor > API/Plugins/MetaHumanCharacterPaletteEditor/IMetaHumanCharac-
Description
Called by the Character editor to initialize the preview actor.
Will only be called once on each instance, after object construction but before actor spawn, and hence before the Blueprint construction script runs, if this is a Blueprint actor.
All other functions will be called after actor spawn, except where noted.
InCharacterInstance is a valid instance using the same Pipeline that spawned this actor.
InCharacter is the Character being edited. This should be returned from GetCharacter.
InFaceMesh and InBodyMesh should be assigned to SkeletalMeshComponents.
InNumLODs is the number of LODs the actor should have. This can be assigned to the LODSyncComponent's NumLODs property if using a LODSyncComponent. The InFaceLODMapping and InBodyLODMapping arrays will have this number of elements.
InFaceLODMapping is a mapping from the actor LOD to the face mesh LOD. For example, if InNumLODs is 4 and InFaceLODMapping is { 0, 0, 1, 1 }, then if SetForcedLOD is called with 3 as the argument, this selects actor LOD 3, which corresponds to InFaceLODMapping[3], which is 1, so the face mesh component should be set to LOD 1.
If this actor uses the LODSyncComponent, it can make a CustomLODMapping entry for the Face component and assign InFaceLODMapping to it. See AMetaHumanCharacterEditorActor for reference.
| Name | InitializeMetaHumanCharacterEditorActor |
| Type | function |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterPaletteEditor/Public/MetaHumanCharacterEditorActorInterface.h |
| Include Path | #include "MetaHumanCharacterEditorActorInterface.h" |
void InitializeMetaHumanCharacterEditorActor
(
TNotNull< const UMetaHumanCharacterInstance * > InCharacterInstance,
TNotNull< UMetaHumanCharacter * > InCharacter,
TNotNull< USkeletalMesh * > InFaceMesh,
TNotNull< USkeletalMesh * > InBodyMesh,
int32 InNumLODs,
const TArray< int32 > & InFaceLODMapping,
const TArray< int32 > & InBodyLODMapping
)