darken particle system by 50%?

I was wondering if I can darken a particle emitter particles by 50% at runtime.

I want to stop the particles and darken the ones on the screen when the game pauses and return them to normal when unpaused.

Just thought I should mention I don't have a light in the scene if that matters.

Thanks

1 Answer

1

Yes you can set the colors of the particle animator. Beware: you have to set them all at once (or, at least as-of 2.6 you did) for that to work. See here: http://unity3d.com/support/documentation/ScriptReference/ParticleAnimator-colorAnimation.html

So you could get the original colors (save them off), then set the alphas to 1/2 of what they were, or set all components to 1/2 of what they were, or whatever.

Thanks heaps DaveA. Got it all working now. Appreciate it.