ULimenInventoryWidget
Overview
ULimenInventoryWidget is an abstract, blueprintable class that extends ULimenGameMenuWidget. It provides functionality for binding to an inventory component and handling item actions through a delegate. The widget includes methods for initializing itself and retrieving the bound inventory component.
Properties
Type | Name | Access | Description |
|---|---|---|---|
UObjectPtr< ULimenInventoryComponent > | BoundInventory | Private | Holds a reference to the currently bound inventory component. |
Functions
Return Type | Signature | Description |
|---|---|---|
void | NativeConstruct() | Called when the widget is first constructed. Calls |
void | BindInventory(ULimenInventoryComponent* NewBoundInventory) | Binds a new inventory component to the widget and triggers the |
GetBoundInventory() const | Returns the currently bound inventory component. |
Usage & Implementation Notes
Threading Constraints: None.
Replication Requirements: None.
Memory Lifetime Management: The
BoundInventoryproperty is managed using aTObjectPtr, which automatically handles memory management and ensures that the object remains valid as long as it is referenced.Initialization Dependencies: The widget depends on being bound to an inventory component through the
BindInventorymethod before it can function properly.