Navigation
API > API/Plugins > API/Plugins/MetaHumanCharacterPalette > API/Plugins/MetaHumanCharacterPalette/UMetaHumanCollectionPipeline
Description
Returns true if the given slot selections are a permitted combination.
Note that the Collection must have been built before calling this.
This allows the pipeline to restrict Instances to selecting items that are compatible with each other using any arbitary logic.
If AreSlotSelectionsAllowed returns false, the text assigned to OutDisallowedReason may be shown to the user to explain why this combination is not allowed.
If SlotSelections is empty, AreSlotSelectionsAllowed must return true.
If there's no entry for a certain slot in the SlotSelections array, the pipeline must implicitly make a valid selection for that slot. In other words, a pipeline can't return false from AreSlotSelectionsAllowed for the reason that there's no explicit selection for a certain slot.
If SlotSelections specifies the empty item key for a slot, this means that no item is selected. It's valid for a pipeline to disallow selecting no item for a slot, meaning that at least one item must be selected for the slot, but in that case, if there's no SlotSelections entry for the slot it must implicitly select a valid item.
The order of elements in SlotSelections must not affect the return value of this function. It may affect OutDisallowedReason, for example if there are multiple reasons why the selection is not allowed.
| Name | AreSlotSelectionsAllowed |
| Type | function |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterPalette/Public/MetaHumanCollectionPipeline.h |
| Include Path | #include "MetaHumanCollectionPipeline.h" |
| Source | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterPalette/Private/MetaHumanCollectionPipeline.cpp |
virtual bool AreSlotSelectionsAllowed
(
TNotNull< const UMetaHumanCollection * > Collection,
TArrayView < const FMetaHumanPipelineSlotSelection > SlotSelections,
FText & OutDisallowedReason
) const