Legacy Documentation: Version 5.0
What is a Particle System?
Particle System How-Tos

Using Particle Systems in Unity

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

Unity implements particle systems with a Component, so placing a system in a scene is a simple matter of adding a pre-made object (menu: GameObject > Create General > Particle System) or adding the component to an existing object (menu: Component > Effects > Particle System). Since the component is quite complicated, the inspector is divided into a number of collapsible sub-sections or modules that each contain a group of related properties. Additionally, you can edit one or more systems at the same time using a separate editor window accessed via the Open Window button on the inspector. The many options available for the Particle System component are described in detail on its component reference page and the pages for the individual modules.

When an object with a particle system is selected, the scene view will contain a small Particle Effect panel with some simple controls that are useful for visualising changes you make to the system’s settings.

The Playback Speed allows you to speed up or slow down the particle simulation so you can quickly see how it will look at an advanced state. The Playback Time indicates the time elapsed since the system was started; this may be faster or slower than real time depending on the playback speed. The playback time can be “scrubbed” backwards and forwards by clicking on the Playback Time label and dragging the mouse left and right. The buttons at the top of the panel can be used to pause and resume the simulation or to stop it and reset to the initial state.

Varying Properties Over Time

Many of the numeric properties of particles or even the whole system can be varied over time. Unity provides several different methods of specifying how the variation will happen:-

  • Constant: The property’s value is fixed throughout its lifetime.
  • Curve: The value is specified by a curve/graph.
  • Random between two constants: Two constant values define the upper and lower bounds for the value; the actual value varies randomly over time between those bounds.
  • Random between two curves: Two curves define the upper and lower bounds of the the value at a given point in its lifetime; the current value varies randomly between those bounds.

For color properties, such as Color over lifetime, there are two separate options:

  • Gradient: The color value is taken from a gradient.
  • Random between two gradients: Two gradients define upper and lower “bounds” on the color value at a given time; the value used is a randomly weighted average of the two bound colors.
What is a Particle System?
Particle System How-Tos