I’m trying to create multiple dynamic meshes dynamically. Right now the first mesh that gets chosen is the one that is being used. So it seems like the “Add Instanced Static Mesh Component” only works once? I know that it is only one mesh per Instanced static mesh, but isn’t it possible to create multiple, and store the different ones in an Array?
You can dynamically add add an ISM component, set its Static Mesh and instantiate it via Add Instance (bottom of pic). A single actor can have any number of ISM components (added manually or dynamically). Each ISM component can have any number of instances of the static mesh its component was assigned.
You can hold ISM components and their instances in arrays:
Hello! Thank you for answering. This I already know, maybe my question wasn’t clear enough. Thing is that I want to store Multiple instanced static meshes in an Array, to then use the add instance on the chosen array.
The first picture I posted is inside the “Create Instanced Static Mesh” function seen in this picture. You can see here in the new picture that I try to spawn different instances depending on the Block ID using the Array. Here is the result in the world.
I have looked at the wrong place for the problem. Sorry, haha
The problem was that the code that checked if it already existed was wrong.
This was how it was.