GPU Particles
self:get_lifetime_randomness
ClientRetrieves how much the lifetime of each particle varies
Syntax
local ratio = self:get_lifetime_randomness()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | ratio | Lifetime randomness between 0 and 1 |
Examples
local entity = particle.gpu.create()
core.engine.print("info", entity:get_lifetime_randomness())