Download

Mesh doesn't load material after change, even thouhg it appears in the editor.

My actor has 3 subobjects, a mesh and two materials. Everything is declared in the constructor, and during the game I set the mesh material from one of the subcomponents. Except it doesn’t load, instead I get a black material. However, if I look at the current material on the model it is the correct material, if I change it through the editor to something else and back it loads correctly. What could be the issue here?

Fixed it: I checked the box to work on static meshes in the material.