Hi,
I am currently playing around with instanced foliage in combination with world partition.
The first issue I had was to find a way how to get the foliage instance from the current position of my character.
I found a way going through all foliage instances of the world partition and picking the one which has the closest distance to my character position.
But I have found another issue which maybe some of you can help me with.
I want to spawn a instanced foliage on the position of my character via blueprint.
The issue is to use AddInstance I need the HierachicalInstancedStaticMeshComp from my foliage type so I can add another foliage of the type to.
In case of using World partition there is no HierachicalInstancedStaticMeshComp in case there are no foliage placed in the grid with the editor.
Means I can only add foliage if there is already a foliage in the grid placed with editor.
Does anyone know how I can add a HierachicalInstancedStaticMeshComp on my own or maybe some other idea what I can do?