Limen Framework 0.1 Help

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

ReturnToGame()

Closes this menu and sets the input to the game. This function is currently a placeholder with no implementation.

void

OnPlayerControllerBound_Implementation(APlayerController* InPlayerController)

Overrides the base class method to handle player controller binding and trigger initialization checks.

void

PawnBoundUpdated_Implementation(APawn* NewPawn)

Overrides the base class method to handle pawn updates and trigger initialization checks.

void

OnWidgetInitialized()

A native event that can be overridden by derived classes to perform actions upon widget initialization.

void

CheckInitialization_Internal()

An internal function used to increment the initialization check counter and call OnWidgetInitialized if both player controller and pawn bindings are confirmed.

Usage & Implementation Notes

  • The NumChecks variable is incremented each time a binding event occurs (player controller or pawn). Once it reaches 2, OnWidgetInitialized is called.

  • This widget ensures that initialization logic is only executed after both necessary bindings have been made, preventing premature initialization.

22 May 2026