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.
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
So, do this back here, once:
I have something similar ( but a lot more code ). I do this before the loop:
and this in the loop:
( 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?
A bit like this: