API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceRateSpawnConfig
@codexo/exojs-particles / particles / stable
Spawn configuration for RateSpawn: the emission rate plus the shared per-property fields.
9
props
0
methods
0
events
Import
import { RateSpawnConfig } from '@codexo/exojs-particles'Spawn configuration for RateSpawn: the emission rate plus the shared per-property fields.
Properties9
Total lifetime in seconds. Drives expiry.
position?: DistributionValue distribution sampled at particle spawn time. Each `sample()` call may return a different value - used to randomize spawn properties (lifetime, position,…<VectorConcrete mutable 2D vector with full AbstractVector arithmetic and Collidable collision support (treated as a point collider). `Vector.temp` provides a shared…>Particles emitted per second. Sampled each frame.
scale?: DistributionValue distribution sampled at particle spawn time. Each `sample()` call may return a different value - used to randomize spawn properties (lifetime, position,…<VectorConcrete mutable 2D vector with full AbstractVector arithmetic and Collidable collision support (treated as a point collider). `Vector.temp` provides a shared…>Atlas frame index. Ignored by a system that declares no frames.
tint?: DistributionValue distribution sampled at particle spawn time. Each `sample()` call may return a different value - used to randomize spawn properties (lifetime, position,…<Color32-bit RGBA color value with channel-wise accessors. Red, green, and blue are integers in 0..255; alpha is a float in 0..1. Out-of-range values are saturated o…>Initial tint. For a per-frame fade use a ColorOverLifetime update module.
velocity?: DistributionValue distribution sampled at particle spawn time. Each `sample()` call may return a different value - used to randomize spawn properties (lifetime, position,…<VectorConcrete mutable 2D vector with full AbstractVector arithmetic and Collidable collision support (treated as a point collider). `Vector.temp` provides a shared…>Source