sorry for asking this n00b question, but I couldn’t find my answer online.
basically I want to add a static mesh to my game scene which uses a customized material I created with c++ code.
but when I add a static mesh through the green button “add component”, the static mesh doesn’t have “material”.
but those static meshes generated with game project template all have materials.
how can I add a material to my mesh?
do you have a c++ example of programmatically add meshes and materials to an empty Actor class?