Limen Framework 0.1 Help

ULimenItemSelectionWidget

Overview

ULimenItemSelectionWidget is a subclass of ULimenGameMenuWidget designed to handle the selection of items from a predefined set. It provides functionality to set available item options and notify when an item is selected. The widget uses a multicast delegate to broadcast the selection event, making it easy for other parts of the application to react to item selections.

Properties

Type

Name

Access

Description

FItemSelectedDelegate

OnItemSelected

BlueprintAssignable

A delegate that is called when an item is selected.

TArray<TSubclassOf<[ALimenItemBase](LimenItemBase.md)>>

Options

Private, BlueprintReadOnly

The list of available item classes.

Functions

Return Type

Signature

Description

void

SetAvailableItemOptions(const TArray<TSubclassOf< ALimenItemBase >>& InOptions)

Sets the available item options and triggers the AvailableItemsUpdated event.

void

NotifyItemSelected(ALimenItemBase* Item)

Notifies that an item has been selected and broadcasts it via the OnItemSelected delegate.

Usage & Implementation Notes

  • Threading Constraints: This widget is designed to be used in the Unreal Engine's main thread, as it interacts with UI elements.

  • Replication Requirements: No replication is required for this widget since it does not contain any data that needs to be synchronized across networked clients.

  • Memory Lifetime Management: The Options array is managed by the widget and should be set during initialization or through the SetAvailableItemOptions function. Ensure that the lifetime of the item classes in the array is managed correctly to avoid dangling pointers.

  • Initialization Dependencies: This widget assumes that it will receive a valid list of item options through the SetAvailableItemOptions function before any selection events are triggered.

Properties

Type

Name

Access

Description

FItemSelectedDelegate

OnItemSelected

BlueprintAssignable

A delegate that is called when an item is selected.

TArray<TSubclassOf<[ALimenItemBase](LimenItemBase.md)>>

Options

Private, BlueprintReadOnly

The list of available item classes.

Functions

Return Type

Signature

Description

void

SetAvailableItemOptions(const TArray<TSubclassOf< ALimenItemBase >>& InOptions)

Sets the available item options and triggers the AvailableItemsUpdated event.

void

NotifyItemSelected(ALimenItemBase* Item)

Notifies that an item has been selected and broadcasts it via the OnItemSelected delegate.

Usage & Implementation Notes

  • Threading Constraints: This widget is designed to be used in the Unreal Engine's main thread, as it interacts with UI elements.

  • Replication Requirements: No replication is required for this widget since it does not contain any data that needs to be synchronized across networked clients.

  • Memory Lifetime Management: The Options array is managed by the widget and should be set during initialization or through the SetAvailableItemOptions function. Ensure that the lifetime of the item classes in the array is managed correctly to avoid dangling pointers.

  • Initialization Dependencies: This widget assumes that it will receive a valid list of item options through the SetAvailableItemOptions function before any selection events are triggered.

22 May 2026