GPU Particles
self:set_lifetime_randomness
ClientSets how much the lifetime of each particle varies
Syntax
local status = self:set_lifetime_randomness(
ratio
)Parameters
| Type | Name | Description |
|---|---|---|
float | ratio | Lifetime randomness between 0 and 1 |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_lifetime_randomness(0.4)