Navigation
API > API/Plugins > API/Plugins/MetaHumanCharacterPalette > API/Plugins/MetaHumanCharacterPalette/UMetaHumanCollectionEditorPipeli-
Description
Creates a FMetaHumanCharacterPaletteItem for a Wardrobe Item whose pipeline is not directly compatible with the target slot.
The implementation should:
- Create a new internal UMetaHumanWardrobeItem as a subobject of the Collection
- Set up the appropriate compatible item pipeline on it
- Populate the new pipeline, e.g. copy relevant settings from the source Wardrobe Item
The Variation field does not need to be set; the Collection will ensure uniqueness.
| Name | TryCreateItemForImport |
| Type | function |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterPalette/Public/MetaHumanCollectionEditorPipeline.h |
| Include Path | #include "MetaHumanCollectionEditorPipeline.h" |
| Source | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterPalette/Private/MetaHumanCollectionEditorPipeline.cpp |
virtual bool TryCreateItemForImport
(
TNotNull< UMetaHumanCollection * > Collection,
FName SlotName,
TNotNull< const UMetaHumanWardrobeItem * > SourceWardrobeItem,
FMetaHumanCharacterPaletteItem & OutItem
)
true if the item was created successfully
Parameters
| Name | Remarks |
|---|---|
| Collection | The Collection being imported into (use as outer for the new internal WI) |
| SlotName | The target slot |
| SourceWardrobeItem | The WI of the item being imported |
| OutItem | The item to be added to the Collection |