Can't correctly change material after changing skeletal mesh

I had a similar issue. Running this code worked for me. Essentially it gets the actual skeletal mesh materials and resets them to themselves before applying new materials to specific slots.

5 Likes