Hey all!
First, sorry for my bad english.
I´m using Legacy Shaders/Particles/Additive on a texture for a ParticleSystem in my game. This have a StartColor selected and this is working well.
Now, I wanna change this color at runtime.
So, in my Start method I set the particle material:
this.sphereMaterial = sphereParticle.GetComponent<ParticleSystemRenderer>().material;
And when I wanna change color and show the particle I do:
this.sphereMaterial.SetColor("_TintColor", new Color(1.0f, 0.0f, 0.0f, 1.0f));
this.sphereParticle.Play();
But now particle effect is not shown. Im forgetting something?