Fading particles in and out is a common effect. The Color over Lifetime module makes that easy.
Using randomly colored particles is a common effect. The Start Color setting in the Particle Main module makes that easy.
I want to combine the two, and am struggling. That is, I want randomly colored particles that fade in and out over time.
The issue is that the Color over Lifetime module setting blends with the Start Color setting. So if I stick with the default white color in the Color over Lifetime module, then all of my randomly chosen start colors get washed out. Ideally, I would just like the Alpha setting of the Color over Lifetime module to be included. Is there a way to do that?
Answer by ifurkend
3 days ago
This sounds odd to me because if you're using the built-in Particles shader, white color does NOT wash out the color mixed from another module. Can you capture a screenshot which shows the gradients of your start color and color over lifetime in your particle system?
Answer by Livealot
3 days ago
Good to know what I thought should happen does actually happen. It was NOT the white that was washing out my colors, it was the alpha settings themselves that were creating that perception. I assumed the pink I saw was my startColor of Red blended with my ColorOverTime of White. That was a bad assumption. In my experimentation with gradients in the ColorOverTime module, some of the Alpha keys got set too low. So the pink I saw was actually my startColor of Red blended with a low alpha from my ColorOverTime gradient seen against a light background.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
7 People are following this question.
Multiple Cars not working
Distribute terrain in zones
Fading Objects does not work (Unity 5)
Script sets color to multiple objects from instead of only one object with Random.range()
Generate a plane and apply an heightmap at runtime?