Array Static Mesh Object references, Create Dynamic Mat Instances

I have an Array of Static Mesh Object references and I need to dynamically change the material in one of the material slots on the meshes. A Static Mesh Object reference is not Compatible with a Primitive Object Component Reference. So what do I do? Some how use a ForEach Loop to convert the meshes to some other type of Object or reference or is that possible or what? It’s a Procedural building Blueprint and I want to change the glass material at runtime. The meshes seem to have to be this class to be editable.
Any help would be greatly appreciated !

1 Like

Static mesh actor is just a wrapper for a static mesh component (which is a primitive component). You can access it directly :

Thanks for the reply, but doesn’t work. It tells me Static mesh object reference is not compatible with primitive component object reference. I can’t get that conversion bar you have in between.

1 Like