I’m trying to change the alpha of a particle system’s material through script, and it’s not working. Note that I tried it also on a regular object with a regular mesh renderer using the same particle shader (I’m using the built-in “Particles/Additive” shader).
Here’s what I’m trying:
var color : Color = chargeParticles.renderer.material.GetColor("_TintColor");
color.a = 20;
chargeParticles.renderer.material.SetColor("_TintColor", color);
chargeParticles.emit = true;
But it’s not working, but it’s not logging any errors, either.
Blamo! That was it.
– PrimeDerektive