Changing individual color of particles by C# script NOT Working?

Hi, Below is my code and it is not changing any of the individual particle’s color.

particle system component is successfully coming in, and I have found good enough amount of particle to update but no color changes… any suggestions?

void Update()
        sys = GetComponent<ParticleSystem>();
        ParticleSystem.Particle[] ps = new ParticleSystem.Particle[sys.maxParticles];
        int count = sys.GetParticles(ps);
        //Debug.Log(count + ":::" + c);
        for (int i = 0; i < count; i++)
            ParticleSystem.Particle p = ps*;*

float LifeProcentage = (p.remainingLifetime / p.startLifetime);
p.startColor = Color.Lerp(Color.clear,, LifeProcentage); ;
sys.SetParticles(ps, count);

seems like you’re changing the color of the copy of each particle in your loop. you’re not modifying the contents of ps*…*