I made a script that can change the static mesh in the editor. In this script caught the number of elements that have the static mesh and lists of materials applied per element. Except that I can not change the material that list. How can I do in order to change these materials?