Hi, I want to add a script in my character to override materials of static meshes,
so that when the performance is getting lower I can replace the materials temporary,
the objects were imported from datasmith so I’d like to keep its properties
instead of adding them into a new BP actor.
the first section for overriding materials works fine,
but I don’t know how to write the second scripts.
Please help me to keep the original materials from beginning so that I can reset them later.