ULimenMenuWrapperWidget
Overview
ULimenMenuWrapperWidget is a specialized menu wrapper widget designed to manage the initialization of its child widgets. It overrides lifecycle events such as OnPlayerControllerBound_Implementation and PawnBoundUpdated_Implementation to trigger an internal check for initialization completion. Once both player controller and pawn bindings are confirmed, it calls the native event OnWidgetInitialized.
Properties
Type | Name | Access | Description |
|---|---|---|---|
uint8 | NumChecks | Private | A counter used to track the number of initialization checks performed. |
Functions
Return Type | Signature | Description |
|---|---|---|
void |
| Closes this menu and sets the input to the game. This function is currently a placeholder with no implementation. |
void |
| Overrides the base class method to handle player controller binding and trigger initialization checks. |
void |
| Overrides the base class method to handle pawn updates and trigger initialization checks. |
void |
| A native event that can be overridden by derived classes to perform actions upon widget initialization. |
void |
| An internal function used to increment the initialization check counter and call |
Usage & Implementation Notes
The
NumChecksvariable is incremented each time a binding event occurs (player controller or pawn). Once it reaches 2,OnWidgetInitializedis called.This widget ensures that initialization logic is only executed after both necessary bindings have been made, preventing premature initialization.