Contents

lifetime

The initial lifetime of the particle in seconds.

Declaration

var lifetime: Float { get set }

Discussion

This determines how long the particle will exist before being automatically removed from the simulation. A value of 0 or negative means the particle will be removed immediately or never spawn.