ULimenInteractablePromptComponent
Overview
ULimenInteractablePromptComponent is an actor component designed to manage and broadcast interaction prompts. It allows other components or blueprints to subscribe to prompt changes using a multicast delegate, making it easy to update UI elements or perform actions based on the current prompt text.
Properties
Type | Name | Access | Description |
|---|---|---|---|
| InteractionPrompt | EditAnywhere, BlueprintReadOnly | The current interaction prompt text. |
Functions
Return Type | Signature | Description |
|---|---|---|
| GetPromptText() const | Returns the current interaction prompt text. |
| SetPromptText(const FText& NewPrompt) | Sets a new interaction prompt text and broadcasts the change via |
Usage & Implementation Notes
The component does not require ticking, so
PrimaryComponentTick.bCanEverTickis set to false.The
InteractionPromptproperty can be edited in blueprints but is read-only at runtime, ensuring that it cannot be changed directly from outside the component.