I can not add a material from c ++

@erikdubbelboer ok friend…

now if you add it in the editor, but when compiling the materials are not reflected

try creating an instance of the material like this:

and changing my code like this:

it does not work, materials are not reflected

253570-mate.png

Now I realized that if I change the component from “UInstancedStaticMeshComponent” to “UStaticMeshComponent” if it works, but I need them to be instances. “UInstancedStaticMeshComponent”