How do I make particles fade out over lifetime?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jerryjrowe

In Unity, there was an “over lifetime of the particle, do this” set of parameters.

I don’t see such things in Godot’s inspector, but that may mean I am just missing something.

Is there a built-in way to make a particle, say, fade to 100% transparent over its lifetime?

I care primarily about Particles2D, but presumably there won’t be a completely different set of rules.

:bust_in_silhouette: Reply From: RedBlueCarrots

Assuming you are using a particles material:

if you go down into the colour settings, you should enable colour ramp. I haven’t used unity’s system, but I assume this acts similar. Then create a new gradient.

This gradient is followed over time, so if you want a fade over time effect, you should set white (255, 255, 255, 255) at the start, then at the end do transparent and white (255, 255, 255, 0)

Then over a particle’s lifetime, it will follow the colour of the ramp and become more transparent.

hope this helps!

This is it! This is the answer. Thank you so much.

jerryjrowe | 2020-08-13 07:07

:bust_in_silhouette: Reply From: wofflle

To add to RedBlueCarrots’ answer, in case of 3D particles, make sure that in the material for geometry instance, check the box for [ Vertex Color > Use as Albedo ]