Why does my shader asset turn pink on import?

Hi,

I have created (and exported) an asset that consists of models that use the basic toon shader (provided in the unity standard assets). For the sake of simplicity I have included the toon shader standard asset with my custom asset when I export it.

My problem is whenever I import my custom asset into another Unity project all the materials and prefabs that use the the toon shader turn pink. I have to reimport all the materials that use the toon shader in order to fix the problem.

This only seems to be happenning with the toon shader (although, it’s the only one I use from the standard assets collection). It doesn’t matter where I place the shader it always turns pink whenver I import it.

Can anyone suggest where I might be going wrong here? Any help would be much appreciated.

Thanks in advance,
Simon

Everytime a material turns pink, a reference to a texture or a shader is missing, or not correctly wired.

My recommendation would be to try to reassign the shader (mark all items you want to use, or the material and reassign the toon shader).

I know this effect from working with unitypackages. Reassigning the shader in the material panel (inspector) solved the issue.