What would be the best way to have a forest of trees or other plants that the player can interact with, using only Blueprints, no C++?
Since my post turned out a little bit long and complicated, here is the short version: How is it possible to have large amounts of blueprint actors in a level at once without loosing a lot of performance? Are there ways to optimes BP actors, like a distan culling to reduce draw calls or a way to replace them with static meshes when they are far away?
I´m trying to create a forest scene with berry bushes that the player can harvest, but while the vegetation tool gives me optimal performance for Static meshes, it´s not possible to add Blueprints (The usable berry bushes) to it. When I place a large amount of bushes manually or via a spawning volume the performence drops to a few frames per second.
Is there a way to use large amounts of Blueprints in a level? I thought about possible ways, and I´d like to know if someone has a better idea or knows how to properly set them up.
1: Idea: Using static meshes and painting them via the vegetation tool, then replacing them with BP actors once they enter a sphere around the player and turning them back into static meshes once they leave said sphere.
Problem: All static meshes painted with the vegetation tool are combined to one big mesh to reduce draw calls and it does not seem possible to get static meshes of a certain kind by using “Get overlapping actors” on a collision volume.
2: Idea: Using only static meshes and paint them with the vegetation tool, then trace for them in a certain radius around the player and when right in front of the player, using a “player mounted” BP to let him collect berrys instead o9f actually interacting with the berry bush itself.
Problem: Again, all meshes are in one peace and its not possible to look for a static mesh that is not part of a Blueprint.
Now, does anyone have an idea how to solve this problem? Or is there a completely different way to make the berry bushes interactable without loosing so much performence?