Archive 17/01/2023.

While ParticleEmitter emitting how can i change color?

tianlv777

while ParticleEmitter emitting how can i change color?I just want to let particle while everyone emitting,they have random color.But I don’t know to do!!!

tianlv777

PF(@6BIKM}4%AE%J5YTX3MW
TL@5P@8JP5T1Z)D9S)QX

SirNate0

Are you trying to get the random colors or make them all the same color?

tianlv777

get random colors…
get random colors…

tianlv777

get random colors…
get random colors…

SirNate0

I may be wrong, but I don’t think there is a way to do it nicely in Urho. This is one of the many limitations I find in the particle system.

My suggestion would be to just copy the whole class and edit your RainbowParticleEmitter class to randomize particle color in addition to the position and scale and such.

tianlv777

thank - -,Ithank - -,Ithank - -,Ithank - -,Ithank - -,I