Skip to main content
World items represent pickable items in the world. Location:
/Public/Items/WorldItemActor.h

Core Properties

Typical fields on AWorldItemActor:
  • FItemInstance ItemInstance – The item being represented
  • bool bIsInfinite – If true, can be picked up repeatedly
  • float DespawnTime – Auto-despawn after N seconds (0 = never)
  • UStaticMeshComponent* MeshComponent – The visual mesh

Creating World Items

Method 1: Place in Level (Preconfigured)
  1. Drag WorldItemActor into the level
  2. In Details:
Method 2: Initialize from Item Data (Blueprint)
Method 3: Spawn Programmatically (C++)

Pickup Logic

When the player interacts with a WorldItemActor, it should try to add the item to their inventory. C++ Example (OnInteract)
Blueprint Pattern