Select your preferred scripting language. All code snippets will be displayed in this language.
enumeration
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.
CloseFor 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.
CloseAll possible particle system vertex shader inputs.
Position | The world space position of each particle. |
Normal | The normal of each particle. |
Tangent | Tangent vectors for normal mapping. |
Color | The color of each particle. |
UV | The texture coordinates of each particle. |
UV2BlendAndFrame | With the Texture Sheet Animation module enabled, this contains the UVs for the second texture frame, the blend factor for each particle, and the raw frame, allowing for blending of frames. |
CenterAndVertexID | The center position of each particle, with the vertex ID of each particle, from 0-3, stored in the w component. |
Size | The size of each particle. |
Rotation | The rotation of each particle. |
Velocity | The 3D velocity of each particle. |
Lifetime | Alive time as a 0-1 value in the X component, and Total Lifetime in the Y component. To get the current particle age, simply multiply X by Y. |
Custom1 | The first stream of custom data, supplied from script. |
Custom2 | The second stream of custom data, supplied from script. |
Random | 4 random numbers. The first 3 are deterministic and assigned once when each particle is born, but the 4th value will change during the lifetime of the particle. |
None | A mask with no vertex streams enabled. |
All | A mask with all vertex streams enabled. |