FoliageInstance Detection
When the player interacts with foliage:- UMI triggers an interact event based on its trace
- The plugin checks whether the hit component is a
UFoliageInstancedStaticMeshComponent - The instance index is retrieved
- The system looks up that foliage type in the Foliage Manager Data Asset
Simple vs Complex Foliage
Simple Foliage
Examples:- Stones
- Sticks
- Herbs
- Berries
- Mushrooms
- Harvested instantly
- Instance removed
- Optional loot rolled immediately
- Respawn Manager schedules regrowth
Complex Foliage
Examples:- Trees
- Large ore nodes
- Bushes with multiple harvest stages
- Foliage instance is removed
- A custom Actor class is spawned in its place
- Actor handles health, break events, and loot
- Respawn Manager handles regrowth logic
Actor Conversion Pipeline
For Complex foliage types:- Instance is removed
- Assigned Actor class is spawned
-
Actor receives optional metadata:
- Instance transform
- Foliage type ID
- Loot definition
- Health/durability values