how to replace all materials

I make a mistake: delete a material in my harddisk. That material was used by 2000+ trees, and when I open unity, I find all the trees link with this material turn to pink color. So I need to fix them. But unity seems not read the material again even I put that material back (I need to assign the missing material one by one as test). Help!

1 Answer

1

Remake the material. Then select all the trees (or lots at the same time). Then set the material on the Mesh Renderer.