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