All objects are getting transparent ?

I’ve written a code for enabling animator and created an animation that devrases alpha level of the object’s shader (Transparent/Diffuse set) but when i do, everything get’s transparent. I mean, I’m using prefabs and all clones which uses that texture gets tranparent. What shall i do ?

Hey Alp

The problem is that you are changing the alpha level of a shared material.

Keep in mind that trying to modify the alpha for a lot of objects indepenantly can be expensive. You need to create a new Material instance for each renderer, and this is going to eat up draw calls.