Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Lights module reference

Explore properties on the Lights module, to configure real-time lights on particles.
Read time 1 minuteLast updated 22 days ago

Add real-time lights to a percentage of your particles using this module.

Properties

For some properties in this section, you can use different modes to set their value. For information on the modes you can use, refer to Vary Particle System properties over time.

Property

Function

LightAssign a Light Prefab describing how your particle lights should look.
RatioA value between 0 and 1 describing the proportion of particles that will receive a light.
Random DistributionChoose whether lights are assigned randomly or periodically. When set to true, every particle has a random chance of receiving a light based on the Ratio. Higher values increase the probability of a particle having a light. When set to false, the Ratio controls how often a newly created particle receives a light (for example, every Nth particle will receive a light).
Use Particle ColorWhen set to True, the final color of the Light will be modulated by the color of the particle it is attached to. If set to False, the Light color is used without any modification.
Size Affects RangeWhen enabled, the Range specified in the Light will be multiplied by the size of the particle.
Alpha Affects IntensityWhen enabled, the Intensity of the light is multiplied by the particle alpha value.
Range MultiplierApply a custom multiplier to the Range of the light over the lifetime of the particle using this curve.
Intensity MultiplierApply a custom multiplier to the Intensity of the light over the lifetime of the particle using this curve.
Maximum LightsUse this setting to avoid accidentally creating an enormous number of lights, which could make the Editor unresponsive or make your application run very slowly.

Additional resources