1. What are Underground Items?

Underground Items represent objects that can appear or be spawned inside a Diggable Area when digging occurs.

These items are used to represent resources, collectibles, or any gameplay-relevant object hidden underground.

2. How Underground Items work?

Underground Items are data-driven objects that are spawned dynamically as a result of digging actions.

They are not placed manually in the level.

Instead, they are defined inside the BP_DiggableArea and evaluated every time a dig action is successfully applied.

3.Underground Item Base

BP_UndergroundItemBase is the base Blueprint used to define the behavior and appearance of underground items.This class inherits from AUndergroundItemBase which is a class created in C++

If you want to add new funcionality to the objects, make sure it inherits from BP_UndergroundItemBase

image.png

4. Configuring Underground Items in the Diggable Area

The BP_DiggableArea uses a data structure to define which underground items can appear and how they behave.

image.png

Properties

Object Name (FName)