Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ParticleSystemVertexStreams

All possible Particle System vertex shader inputs.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
Warning
Deprecated. ParticleSystemVertexStreams is deprecated. Please use ParticleSystemVertexStream instead.
[Flags]public enum ParticleSystemVertexStreams

Fields

Value

Description

AllA mask with all vertex streams enabled.
CenterAndVertexIDThe center position of each particle, with the vertex ID of each particle, from 0-3, stored in the w component.
ColorThe color of each particle.
Custom1The first stream of custom data, supplied from script.
Custom2The second stream of custom data, supplied from script.
LifetimeAlive 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.
NoneA mask with no vertex streams enabled.
NormalThe normal of each particle.
PositionThe world space position of each particle.
Random4 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.
RotationThe rotation of each particle.
SizeThe size of each particle.
TangentTangent vectors for normal mapping.
UVThe texture coordinates of each particle.
UV2BlendAndFrameWith the TextureSheetAnimationModule 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.
VelocityThe 3D velocity of each particle.