Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ParticleSystemVertexStream

All possible Particle System vertex shader inputs.
Read time 3 minutesLast updated 4 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public enum ParticleSystemVertexStream

Fields

Value

Description

AgePercentThe normalized age of each particle, from 0 to 1.
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.
ColorThe color of each particle.
ColorPackedAsTwoFloatsThe color of each particle, packed in a special format to allow decoding on GPUs that do not support bit-packing operations.
Custom1XOne custom value for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom1XYTwo custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom1XYZThree custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom1XYZWFour custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom2XOne custom value for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom2XYTwo custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom2XYZThree custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
Custom2XYZWFour custom values for each particle, defined by the Custom Data Module, or ParticleSystem.SetCustomParticleData.
InvStartLifetimeThe reciprocal of the starting lifetime, in seconds (1.0f / startLifetime).
MeshAxisOfRotationThe axis of rotation used by mesh particles when not using 3D rotation.
MeshIndexThe index of the mesh used by the current particle.
NextTrailCenterThe center of the next trail position, connected to the current position.
NoiseImpulseXThe X axis noise on the current frame.
NoiseImpulseXYThe X and Y axis noise on the current frame.
NoiseImpulseXYZThe 3D noise on the current frame.
NoiseSumXThe accumulated X axis noise, over the lifetime of the particle.
NoiseSumXYThe accumulated X and Y axis noise, over the lifetime of the particle.
NoiseSumXYZThe accumulated 3D noise, over the lifetime of the particle.
NormalThe vertex normal of each particle.
ParticleIndexThe index of the current particle in the particle data array.
PercentageAlongTrailThe percentage along the trail, in the range 0-1.
PositionThe position of each particle vertex, in world space.
PreviousTrailCenterThe center of the previous trail position, connected to the current position.
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.
SizeXThe X axis size of each particle.
SizeXYThe X and Y axis sizes of each particle.
SizeXYZThe 3D size of each particle.
SpeedThe speed of each particle, calculated by taking the magnitude of the velocity.
StableRandomXA random number for each particle, which remains constant during their lifetime.
StableRandomXYTwo random numbers for each particle, which remain constant during their lifetime.
StableRandomXYZThree random numbers for each particle, which remain constant during their lifetime.
StableRandomXYZWFour random numbers for each particle, which remain constant during their lifetime.
TangentThe tangent vector for each particle (for normal mapping).
TrailWidthThe width of the trail.
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).
VaryingRandomXA random number for each particle, which changes during their lifetime.
VaryingRandomXYTwo random numbers for each particle, which change during their lifetime.
VaryingRandomXYZThree random numbers for each particle, which change during their lifetime.
VaryingRandomXYZWFour random numbers for each particle, which change during their lifetime.
VelocityThe velocity of each particle, in world space.
VertexIDThe vertex ID of each particle.