Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

ParticleSystemSortMode

enumeration

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

Submission failed

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

Close

Cancel

Description

The sorting mode for particle systems.

Properties

NoneNo sorting.
DistanceSort based on distance to the camera position. For orthographic cameras, this mode is the same as sorting by depth.
OldestInFrontSort the oldest particles to the front.
YoungestInFrontSort the youngest particles to the front.
DepthSort based on depth from the camera plane.
DistanceReverseSort based on reverse distance to the camera position. For orthographic cameras, this mode is the same as sorting by depth.
DepthReverseSort based on reverse depth from the camera plane.