Are instanced static mesh components combined into a single instanced static mesh if they use the same mesh asset?
I'm currently wondering how Instanced Static Mesh Components work, or more precisely what happens in the following two situations:
First, let's assume one creates an actor blueprint that has an instanced static mesh component, and then places two identical instances those actors in the level. Will this cause two distinct instanced static meshes to be created, or will both actor's instanced static mesh components be combined into a single instanced static mesh for rendering purposes?
The second situation would be that one actor has two identical instanced static mesh components. Will those be one instanced static mesh for rendering, or will they be rendered as individual instanced static meshes each?
Thanks in advance!
asked Mar 01 '17 at 09:52 AM in Using UE4
The instanced static mesh component acts as a container for the intances that you add. The static mesh and material it uses is set on that component. You add instances with AddInstance, not Spawn.
So if you do spawn or place two of those actors, each will have it's container and they won't be pooled together.
If you want it to be one static mesh container, what you can do is create an actor that has the instanced static mesh component that acts as a global container, and pass a reference to that to your other actors, who then add instances to this global container.
answered Mar 13 '17 at 03:34 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here