Stuck on proper Blueprint logic for a crowd instancing system in Unreal.
I am instancing a small number of unique crowd agents (static meshes) targeting a collection of vertices in a target mesh. So 2 arrays. Small one containing my unique crowd agents. And a large one containing the vertex positions.
After a lot of digging I realize what I have (in attached) is wrong.
I need to be only adding a new HISM for each unique character (static mesh) NOT for every single instance(vertex postion).
What change(s) should I be making to the attached?
I don’t actually understand the code you have there, but you’re right. You only need to make HISM for each different mesh. It looks like in this case, that’s your characters.
So my revised logic would be
1 Define my current characters array containing my unique static mesh actors.
2 Based on this array add a new HISM component
3 In my ‘main’ execution thread create my array of vertex positions.
My confusion is what to do with the execution thread after the AddHISM component (green question mark)?
or in other words how to connect the 2 execution loops?
I definitely can’t nest them (ie have 1 for loop in the Body of another one).