Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

ParticleSystemVertexStream

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

All possible Particle System vertex shader inputs.

Properties

Property Description
PositionThe position of each particle vertex, in world space.
NormalThe vertex normal of each particle.
TangentThe tangent vector for each particle (for normal mapping).
ColorThe color of each particle.
UVThe first UV stream of each particle.
UV2The second UV stream of each particle.
UV3The third UV stream of each particle (only for meshes).
UV4The fourth UV stream of each particle (only for meshes).
AnimBlendThe amount to blend between animated texture frames, from 0 to 1.
AnimFrameThe current animation frame index of each particle.
CenterThe center position of the entire particle, in world space.
VertexIDThe vertex ID of each particle.
SizeXThe X axis size of each particle.
SizeXYThe X and Y axis sizes of each particle.
SizeXYZThe 3D size of each particle.
RotationThe Z axis rotation of each particle.
Rotation3DThe 3D rotation of each particle.
RotationSpeedThe Z axis rotational speed of each particle.
RotationSpeed3DThe 3D rotational speed of each particle.
VelocityThe velocity of each particle, in world space.
SpeedThe speed of each particle, calculated by taking the magnitude of the velocity.
AgePercentThe normalized age of each particle, from 0 to 1.
InvStartLifetimeThe reciprocal of the starting lifetime, in seconds (1.0f / startLifetime).
StableRandomXA random number for each particle, which remains constant during their lifetime.
StableRandomXYTwo random numbers for each particle, which remain constant during their lifetime.