Particle Animator Color Animation array

How do the Color Animation elements [0..4] in the Paricle Animator component affect the shading of particles? It's difficult to figure it out from experimentation alone.

Thanks!

They affect the color of the particles at different times during thier lifespan. eg: the particle will be more or less color 0 when it is spawned, and color 4 when it reaches the end of it's lifespan. You can make the opacity on those colors 0 at 0 and 4 to make the particle fade in and out.

Is there any way to control when and how fast the particle transitions among the various colors?

you could set doesAnimateColor on the particle animator to be false and then do it your self with a script:

if(timer >= redTime) renderer.material.color = redColor;
if(timer >= greenTime) renderer.material.color = greenColor;
if(timer >= blueTime) renderer.material.color = blueColor;

I can't get the color to change using renderer.material.color. How can I change the colors of particles when I want??

material.color updates the property named "_Color" in the shader. However, the built-in particle shaders use a property named "_TintColor". So the code would have to be:

renderer.material.SetColor( "_TintColor", mycolor );

That did not work for me, but it also did not produce any errors. All of my particles are white, unless I set up the 5 colors in the GUI and also set them to animate.

Where did you even find that "_TintColor" term? I don't know where to access it in the manual.

Thanks!

One way is to look at the source of built-in shaders. I think one or two particle shaders can't be colorized (they don't have color in inspector either), because that wouldn't be possible on some older hardware.

I'm still pretty new to Unity...I am learning new features every day. Here's my situation:

I like the "Default-Particle" material very well for the effect I want, but I want to animate its color as I please. I can find no way to access this. If I switch this to a different material, I also can't figure out how to find the "Default-Particle" material again. Perhaps there is some way to use the shaders that came in your folder for the effect I want, but I don't have enough knowledge yet to figure it out.

Any advice that you can give me in regards to this is extremely appreciated!

After a few days:
I'll just assume what I want to do is impossible, then, and use a different, less appropriate effect. Here's hoping particle color becomes animatable in Unity 2.0. This seems like a weird omission to me...perhaps OTEE felt that the default particles wouldn't get used much, but they were perfect for the effect I am going for.

maybe i got the same prob. i'm totally newbie here and to the unity though, just hope writing this post might help others stucked in this simple issue just like me.

After choosing a material rather than 'default-particle', as shader is set as 'diffuse' in default state, change the shader to 'particle - somewhat', then color animation will properly work.