Navigation
API > API/Plugins > API/Plugins/MetaHumanCharacterPalette
Uniquely identifies an item in a UMetaHumanCharacterPalette
| Name | FMetaHumanPaletteItemKey |
| Type | struct |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterPalette/Public/MetaHumanPaletteItemKey.h |
| Include Path | #include "MetaHumanPaletteItemKey.h" |
Syntax
USTRUCT (BlueprintType )
struct FMetaHumanPaletteItemKey
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| MetaHumanPaletteItemKey.h | |||
FMetaHumanPaletteItemKey
(
const TSoftObjectPtr< UObject >& InPrincipalAsset, |
MetaHumanPaletteItemKey.h | ||
FMetaHumanPaletteItemKey
(
const TSoftObjectPtr< UMetaHumanWardrobeItem >& InExternalWardrobeItem, |
MetaHumanPaletteItemKey.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Variation | FName | A name used to disambiguate items that reference the same asset or wardrobe item. | MetaHumanPaletteItemKey.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bReferencesExternalWardrobeItem | bool | MetaHumanPaletteItemKey.h |
|
|
| PrincipalAssetOrExternalWardrobeItem | TSoftObjectPtr< UObject > | MetaHumanPaletteItemKey.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsNull () |
Returns false if this key could represent an item. | MetaHumanPaletteItemKey.h | |
bool ReferencesExternalWardrobeItem() |
Returns true if the Wardrobe Item referenced by this palette item is a self-contained asset | MetaHumanPaletteItemKey.h | |
bool ReferencesSameAsset
(
const FMetaHumanPaletteItemKey& Other |
Returns true if the other key is identical to this one except for Variation | MetaHumanPaletteItemKey.h | |
void Reset() |
Resets the key to the null state | MetaHumanPaletteItemKey.h | |
FString ToAssetNameString () |
Produces a string suitable for using as part of an asset name | MetaHumanPaletteItemKey.h | |
FString ToDebugString() |
Produces a string with the contents of this key, suitable for log messages, etc | MetaHumanPaletteItemKey.h | |
bool TryGetExternalWardrobeItem
(
TSoftObjectPtr< UMetaHumanWardrobeItem >& OutWardrobeItem |
If this item references an external Wardrobe Item, this function succeeds and returns it via the given argument. | MetaHumanPaletteItemKey.h | |
bool TryGetPrincipalAsset
(
TSoftObjectPtr< UObject >& OutPrincipalAsset |
If this item references a Principal Asset directly, this function succeeds and returns it via the given argument. | MetaHumanPaletteItemKey.h |