Skip to the content.

This plugin is designed to enhance the interaction with foliage in your game. It allows you to detect and hide instances of foliage and replace them with user-defined Blueprint counterparts. This can lead to more efficient and seamless interactions in your game.

The plugin supports taking ownership of the foliage or resetting it back to its initial state once the player gets far away. This feature is designed with ease of use and simplicity in mind.

Here are some example behaviors that can be achieved with this plugin:

Quick Start

To use this plugin, follow these steps:

  1. Create a Blueprint of type BaseInteractFoliageActor and one blueprint of type InteractiveFoliageComp.

Create Blueprint

  1. Open your instance of InteractiveFoliageComp and set your target Actor that this foliage spawns (the one you made in step 1).

Set Target Actor

  1. Open your foliage and set its component to the InteractiveFoliageComp that you made.

Set Foliage Component

  1. In your Actor, override the Initialize foliage event (called when the actor is spawned) with minimal behavior.

Initialize Foliage

Constraint foliage

Constraint foliage is a kind of tree/ foliage that can bend by force.
Constraint foliage is same process but make your Actor child of ConstraintedFoliage instead of BaseInteractFoliageActor . Make Sure your foliage doesn’t initially collide with static world around it otherwise it will move violently.

Understanding Params and Functions

Foliage Component:

Foliage Actor: