Returns the first visible prompt part that matches the provided type priority order.
Use this read path when get first prompt part by priority from UInteractionUIPromptBlueprintLibrary. Check the return value before using OutPart.
UFUNCTION(BlueprintPure, Category = "InteractionUI|Prompt")
static bool TryGetFirstPromptPartByPriority( const FInteractionUIPromptPresentation& Presentation, const TArray<EInteractionUIPromptPartType>& PreferredTypes, FInteractionUIPromptPartPresentation& OutPart);
Parameters
Inputs
Presentation
Prompt presentation to read or format.
PreferredTypes
Preferred prompt part types to search for.
Outputs
OutPart
Receives the matching prompt part.
Return Value
bool
Returns the first visible prompt part that matches the provided type priority order.
Use Cases
- Read first prompt part by priority and handle the missing-data case explicitly.