Renderer.sharedMaterials
Note that like all arrays returned by Unity, this returns a copy of materials array. If you want to change some materials in it, get the value, change an entry and set materials back.
如果在编辑器中修改 render.materials[index] 的值不起作用,请看上面官方的标明的注意事项。