I'm using Unity Indie 2.6.1 and have following code:
If I've understood the documentation correctly this should also work with a particle renderer but I have no reaction at all. It works without any problems with a mesh renderer.
Does anybody have a suggestion what could be the problem?
The problem is that most particle shaders do not use "_Color" for their main color property.
(material.color is just a shortcut for material.SetColor("_Color", ...))
Most particle shaders right now use "_TintColor" as their color property. So you should do:
answered Dec 11 '09 at 10:06 AM