Apply Material to Spawned Static Mesh

How would you apply a texture to a static mesh that was spawned at runtime?
Here’s how I spawn the actors, apply a mesh and attempt to apply a material

Here’s how I choose where to spawn the meshes if that’s needed

Here as I do:

I have mesh (in this case character, but this is for character mesh, so same rule) as blueprint. On Construction Script it selecting material instance - it should be before created material instance from source material. You not need to set ‘Value’ this is for color. I’m changing it for my debug, they spawn with random, different colors.

You can also using it elsewhere, on your creating function, but I think not bad way is with creating simple mesh blueprint like this.

thank you, I dont know why the other way doesn’t work but this way does