Returns the prompt presentation for the first command entry in a surface projection.
Use this read path when get primary command prompt presentation from UInteractionUIPromptBlueprintLibrary. Check the return value before using OutPresentation.
UFUNCTION(BlueprintPure, Category = "InteractionUI|Prompt")
static bool TryGetPrimaryCommandPromptPresentation( const FInteractionUISurfaceProjection& SurfaceProjection, FInteractionUIPromptPresentation& OutPresentation);
Parameters
Inputs
SurfaceProjection
Surface projection data to inspect.
Outputs
OutPresentation
Receives the prompt presentation data.
Return Value
bool
Returns the prompt presentation for the first command entry in a surface projection.
Use Cases
- Read primary command prompt presentation and handle the missing-data case explicitly.