I can not add a material from c ++

Materials have an attribute “Used With InstancedStaticMeshes”
You have to toggle that to true in the editor and then it should work.

1 Like