Why is my Instance Static Meshes overlapping?

I have a BP that is creating a wall from an array Struct using instanced meshes. It’s working but it seems to be overlapping instance meshes sometimes. Not sure why? Any help? See images.

349108-overlappinginstancestaticmesheshow.png

So that cleared up the overlapping meshes but now it’s not getting an random mesh from the WallDecorStruct like it was before. How would I have to do that? Meaning, get a new static mesh from the struct and not the same one repeating over and over?

The whole point of adding instanced components, is you only do that once, then you make instances of it.

You’re adding and instanced component every time along with the instances :slight_smile:

So, do this back here, once:

I have something similar ( but a lot more code ). I do this before the loop:

349151-screenshot-3.jpg

and this in the loop:

349152-screenshot-4.jpg

( as well as setting the mesh ).

So that cleared up the overlapping meshes but now it’s not getting an random mesh from the WallDecorStruct like it was before. How would I have to do that? Meaning, get a new static mesh from the struct and not the same one repeating over and over?

Sorry, I hadn’t noticed the random part in your code.

You need one ISM for each mesh type you are going to place. So, start by just adding 5 ISM ( or whatever number ).

Then, go into the loop, choose a random mesh and add an instance for the corresponding ISM you have setup.

Do you get it? :slight_smile:

A bit like this: