Hi,
I’d like to duplicate some prefabs, find their materials, duplicate those and then change the settings on them before writing them back into my new prefabs. The trouble I’m having is that I’m unable to write the new material back into the sharedMaterials list on the renderer component. If I use materials instead, I get told off for using it at edit time and end up trying to write to null.
So, what’s the correct way to update a renderer’s materials at edit time?
Thanks,
Stu