I override a mesh’s materials at runtime, sometime I need to restore it’s original materials.
I inherited StaticMesh component in c++, then just empty OverrideMaterials.
I can see it work on detail panel, but the viewport does not update it’s material.
How to fix it? Or is there any other way to achieve it?
I solved it: just call MarkRenderStateDirty method.
But, I still want to know is there any other way to achieve this in blueprint?