Returns the first visible prompt part with the requested metadata tag.
Use this read path when get first prompt part by metadata from UInteractionUIPromptBlueprintLibrary. Check the return value before using OutPart.
UFUNCTION(BlueprintPure, Category = "InteractionUI|Prompt")
static bool TryGetFirstPromptPartByMetadata( const FInteractionUIPromptPresentation& Presentation, FName MetadataTag, FInteractionUIPromptPartPresentation& OutPart);
Parameters
Inputs
Presentation
Prompt presentation to read or format.
MetadataTag
Optional metadata tag used by prompt presentation.
Outputs
OutPart
Receives the matching prompt part.
Return Value
bool
Returns the first visible prompt part with the requested metadata tag.
Use Cases
- Read first prompt part by metadata and handle the missing-data case explicitly.