GPU Particles

self:get_lifetime_randomness

Client

Retrieves how much the lifetime of each particle varies

Syntax

local ratio = self:get_lifetime_randomness()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatratioLifetime randomness between 0 and 1

Examples

Get the lifetime randomness
local entity = particle.gpu.create()

core.engine.print("info", entity:get_lifetime_randomness())

On this page