Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Max Slots
9
Auto Refill Enabled
true
BeginPlay
Event BeginPlay ↓ Get HotbarComponent ↓ Set Player Inventory Inventory: [Main InventoryComponent]
// In Character.h UPROPERTY(VisibleAnywhere, BlueprintReadOnly) UHotbarComponent* HotbarComponent; // In Character.cpp constructor HotbarComponent = CreateDefaultSubobject<UHotbarComponent>(TEXT("HotbarComponent")); HotbarComponent->MaxSlots = 9; HotbarComponent->bAutoRefillEnabled = true; // In BeginPlay void AMyCharacter::BeginPlay() { Super::BeginPlay(); HotbarComponent->SetPlayerInventory(InventoryComponent); }