I have a particle system for this ball rolling on the ground. I want the particles to change color every time the surface that it is rolling on changes color to correspond with the ground color.
After the recent update this is done via:
ParticleSystem.MainModule settings = GetComponent<ParticleSystem>().main; settings.startColor = new ParticleSystem.MinMaxGradient( yourColor );
emc233 is wrong and not even trying to help. it’s through the startColor attribute of the Particle System
this.GetComponent<ParticleSystem>().startColor = new Color(1, 0, 1, .5f);