I have a static mesh “A” (which I can use to spawn as a static mesh actor). I want to generate a static mesh in C++ that consists of multiple copies of “A”. I know that I can do this in the editor using window > developer tools > merge actors, but I want to do it dynamically in C++ code (or Blueprints).
Update #1: Why doesn’t the following work? Generate Box Mesh works but Get Section from Static Mesh does not.
Add Static Mesh Component. You can get this by dragging a static mesh from Content into the Construction script for your actor blueprint. Or you can create an “Add Static Mesh Component Node” then edit its details.
Update #1: although this is actually very slow for some reason. I tried it with 100 actors with only 24 verts per actor and lowers FPS from 21 to 12.
Update #2: So actually I don’t think this is doing what I want it to do. I think it creates 100 static meshes. I want to merge them into one mesh, so maybe there is an additional step to do that?