Hi everyone! I have been playing around with particles in Niagara, and currently I want- the color gradient normalized by age to change after 20 seconds to a completely different one with more color stops. Is there any way of doing this? I’ve been looking for a long time and can’t seem to find anything.
Thank you!
Hello there @screamingpuffin!
I think that what you need here, is the “Lerp Particle Attributes” module:
You can add it from “Particle Update”. Once set, it will allow you to pick between two color gradients (pick “Color from Curve”), and each gradient will have their own set of stops.
Now, to switch between the two, you have the “Lerp Alpha” value on the top. 0 will use the first gradient, and 1 will use the second gradient (values in between will blend them). To manipulate it through time, the easist solution would be to add a “Curve for Float” to it, and play around with said curve, along with the lifecyle of your particle, so it exists for 20 seconds in the world, then it changes to the second gradient.
If you prefer direct control over it, you can create an exposed user value, as a float, and tie it to the “Lerp Alpha”. Then, setup a blueprint, with a delay function, tied to a “Set Niagara Variable Float” node, which will change your exposed value from 0 to 1.