How to save a Material at runtime?

Yeah good guess, i will try it out tomorrow, thanks man.