ULimenBaseHudWidget
Overview
ULimenBaseHudWidget is an abstract, blueprintable widget class designed to manage the binding of a player controller and their possessed pawn. It inherits from ULimenWidget and provides functionality for updating when these bindings change.
Properties
Type | Name | Access | Description |
|---|---|---|---|
TWeakObjectPtr | BoundPlayerController | Private | A weak pointer to the currently bound player controller. |
TWeakObjectPtr | BoundPawn | Private | A weak pointer to the pawn possessed by the bound player controller. |
Functions
Return Type | Signature | Description |
|---|---|---|
void | BindPlayerController(APlayerController* InPlayerController) | Binds a player controller to this HUD widget and updates the bound pawn accordingly. |
APlayerController* | GetBoundPlayerController() const | Returns the currently bound player controller. |
void | PossessedPawnChanged(APawn* OldPawn, APawn* NewPawn) | Handles the change in possessed pawn by updating the bound pawn and calling |
Usage & Implementation Notes
Threading Constraints: This widget operates on the game thread.
Replication Requirements: None.
Memory Lifetime Management: Uses weak pointers to manage references, preventing memory leaks.
Initialization Dependencies: Requires a valid player controller to be bound.