- Home /
materials deplaced, all billion objects purple. How put back ?
My platformer game is composed of little simple cubes with all the same material and texture. I've deplaced the material, put them in their original file. Now all those cube objects are purple. They've lost their material. How do I do to give them back their original material ? i could drag the material on all the objects but there is just too many of them. PS : I am, while typing this question, typing on the edge of a cliff. Just to set the tone of this dramatic incident.
I hope you used prefabs. If you used prefabs you can just replace the prefab source in the project folder and you should be good.
Otherwise I suggest you either write yourself a small Editor tool to iterate over your objects and do that for you.
Answer by iwaldrop · Jan 16, 2013 at 10:10 PM
First of all you should probably be using Prefabs. I hope you are, because then you just need to modify the Prefab once and all objects will be updated. If not, then you will be forced to update each GameObject individually! Sucks, I know, but it's a necessary lesson to learn. Prefabs are awesome!