Hello,
I am doing something like this to change in code the color of a ParticleSystem.
this.entityParticleEngine.particlesystem.colorGraph.curves[0].keys[0][1] = 0.2;
this.entityParticleEngine.particlesystem.colorGraph.curves[1].keys[0][1] = 0.2;
this.entityParticleEngine.particlesystem.colorGraph.curves[2].keys[0][1] = 0.85;
It works correctly if I do this during initialization. But on runtime, in the update(dt) function, it doesn’t affect the color. Do we have do some sort of update on the ParticleSystem, like what we do when we modify a material?
Thanks,