Navigation
API > API/Plugins > API/Plugins/MetaHumanCharacterPalette > API/Plugins/MetaHumanCharacterPalette/UMetaHumanCharacterPalette
Description
Adds an item to this palette, if there's no existing item with the same key.
Prefer to call TryAddItemFromPrincipalAsset or TryAddItemFromWardrobeItem if possible, as those handle setting up the item correctly for you.
This function is guaranteed to succeed if the item's Variation is set from a call to GenerateUniqueVariationName.
| Name | TryAddItem |
| Type | function |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterPalette/Public/MetaHumanCharacterPalette.h |
| Include Path | #include "MetaHumanCharacterPalette.h" |
| Source | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterPalette/Private/MetaHumanCharacterPalette.cpp |
bool TryAddItem
(
const FMetaHumanCharacterPaletteItem & NewItem
)