ULimenChatBox
Overview
ULimenChatBox is a subclass of ULimenMenuWidget designed to manage and display chat messages. It provides functionality to bind a chat handler and handle incoming messages through a Blueprint-implementable event.
Properties
Type | Name | Access | Description |
|---|---|---|---|
Handler | Protected | Pointer to the chat handler that manages chat messages. |
Functions
Return Type | Signature | Description |
|---|---|---|
void | BindChatHandler(ALimenChatHandler* Handler) | Binds a chat handler to the chat box and handles any existing messages. |
BlueprintImplementableEvent | MessageReceived(const FChatMessage& NewMessage) | Event triggered when a new message is received. This function can be overridden in Blueprints. |
Usage & Implementation Notes
Threading Constraints: The
BindChatHandlerfunction should be called on the game thread.Replication Requirements: None.
Memory Lifetime Management: Ensure that the chat handler remains valid for the lifetime of the
ULimenChatBox.Initialization Dependencies: The chat handler must be set before any messages are received.