Download

Any way to attach an InstancedStaticMesh?

I’ve been following this tutorial to create a tunnel. But instead of using static mesh components in the for loop, I want to use the instanced static mesh component. When I replace the static mesh component with the instanced static mesh component the editor crashes. If you look at the second image, the tunnel on the right works (static mesh component) but the tunnel on the left (ISM) is working properly.

Thanks in advance!

I’m guessing you have that in a loop. You’re adding an Instanced static mesh (ISM) component each loop, adding an instance to it.
Remove the ISM node and add a ISM component directly. Either before the loop or directly into the components list. Then, using that ISM as reference, add instance with desired transform.
You also set the mesh of the ISM component. Sure you can do that through nodes, but you can also click on that ISM node (or the ISM in the components list) and set that stuff in the details panel.

Practically, the only thing you should need, in this example, is a “add instance” node during the loop.

Thanks ste1nar. I’ll give that a shot. And you are correct, I was adding the ISM into a loop.