Instance Property

lifetime

Defines a multiplier applied to the cell-defined lifetime range when particles are created. Animatable.

Declaration

var lifetime: Float { get set }

Discussion

Default value is 1.0.

By setting an emitter's lifetime to 0, you effectively stop particle emission: all new particles created have their lifetime set to 0 and are never rendered.

See Also

Emitter Cell Attribute Multipliers

var scale: Float

Defines a multiplier applied to the cell-defined particle scale.

var seed: UInt32

Specifies the seed used to initialize the random number generator.

var spin: Float

Defines a multiplier applied to the cell-defined particle spin. Animatable.

var velocity: Float

Defines a multiplier applied to the cell-defined particle velocity. Animatable.

var birthRate: Float

Defines a multiplier that is applied to the cell-defined birth rate. Animatable

var preservesDepth: Bool

Defines whether the layer flattens the particles into its plane.