Legacy Documentation: Version 5.0
Color Over Lifetime Module
Size Over Lifetime Module

Color By Speed Module

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

The color of a particle can be set here to change according to its speed in distance units per second.

Properties

Property: Function:
Color The color gradient of a particle defined over a speed range.
Speed Range The low and high ends of the speed range to which the color gradient is mapped (speeds outside the range will map to the end points of the gradient).

Details

Burning or glowing particles, such as sparks, will tend to burn more brightly when they move quickly through the air (being exposed to more oxygen) but then dim slightly as they slow down. To simulate this, you might use Color By Speed with a gradient that has white at the upper end of the speed range and red at the lower end.

Color Over Lifetime Module
Size Over Lifetime Module