I am looking for a way to reliably spawn a single instance of a static mesh into a foliage actor…
You would think that AddInstance worked the reverse of RemoveInstance, and it kind of does, but not in the expected way. It takes the argument of location only, so you have to set the static mesh for the component before you add the instance. The problem is, when I actually run the code to add the instance, it adds the instance, bit it also swaps all of the alike meshes in the instance for the mesh that i set the static mesh to before adding the instance.
When you’re working with ISM or HISM, you initialize the mesh first, then add instances of it. All of the instances will have the same mesh, that’s the whole point
If you change the mesh, they will all change, because they are all instances of the same mesh.
If you want to add a new mesh, you have to make a new ISM ( or HISM ), and add instances again.