Lifetime Modules

The Lifetime module is used to set the initial lifetime of a particle at spawn time.

Choose your operating system:

Windows

macOS

Linux

Lifetime

The Lifetime module is used to set the initial lifetime of a particle at spawn time. It contains the following member(s):

Property

Description

Lifetime

Lifetime

A float distribution indicating the lifetime of the particle, in seconds. Value is retrieved based on the EmitterTime at the spawn of the particle.

In Spawn, the module retrieves the appropriate values from the distribution using the current emitter time. This is then added to the Particle.OneOverMaxLifetime field, to allow for multiple lifetime modules to be applied.

Lifetime (Seeded)

The Lifetime (Seeded) module is identical to the Lifetime module in that it sets the lifetime of a particle at spawn time; however, this module allows you to specify seed information to be used when choosing distribution values in order to provide a more consistent effect from the module each time the emitter is used. It contains the following member(s):

Property

Description

RandomSeed

Random Seed Info

The random seed(s) to use for selecting "random" values for this module's properties. It includes the following values:

Property

Description

Get Seed From Instance

If true , the module will attempt to get the seed from the owner instance. If that fails, it will fall back to getting it from the Random Seeds array.

Instance Seed Is Index

If true , the seed value retrieved from the instance will be an index into the Random Seeds array.

Parameter Name

The name to expose to the placed instance for setting this seed.

Random Seeds

The random seed values to utilize for this module. If multiple values are specified, a value will be chosen at random by the instance.

Reset Seed On Emitter Looping

If true , the seed will be reset each time the emitter loops.

Lifetime

Lifetime

A float distribution indicating the lifetime of the particle, in seconds. Value is retrieved based on the EmitterTime at the spawn of the particle.

In Spawn, the module retrieves the appropriate values from the distribution using the current emitter time. This is then added to the Particle.OneOverMaxLifetime field, to allow for multiple lifetime modules to be applied.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss