Blueprint
- Open your Character Blueprint
- Add Component → Inventory Component
-
Configure in Details panel:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Max Slots: 30
Max Weight: 100.0
Inventory Type: Standard
// In your Character.h
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Inventory")
UInventoryComponent* InventoryComponent;
// In your Character.cpp constructor
InventoryComponent = CreateDefaultSubobject<UInventoryComponent>(TEXT("InventoryComponent"));
InventoryComponent->MaxSlots = 30;
InventoryComponent->MaxWeight = 100.0f;