EmitterConfig
Defined in: particles/src/types.ts:14
Emitter configuration.
Properties
Section titled “Properties”alpha?
Section titled “alpha?”
optionalalpha?:NumberRange|Lerped
Defined in: particles/src/types.ts:32
Alpha/opacity (or lerped). Default: 1.
angle?
Section titled “angle?”
optionalangle?:NumberRange
Defined in: particles/src/types.ts:28
Emission direction in radians. Default: 0.
damping?
Section titled “damping?”
optionaldamping?:number
Defined in: particles/src/types.ts:42
Velocity damping per second (0-1). Default: 0.
gravity?
Section titled “gravity?”
optionalgravity?:object
Defined in: particles/src/types.ts:40
Gravity in px/s². Default: none.
x:
number
y:
number
layer?
Section titled “layer?”
optionallayer?:string
Defined in: particles/src/types.ts:49
Render layer name. Default: “default”.
lifetime
Section titled “lifetime”lifetime:
NumberRange
Defined in: particles/src/types.ts:24
Particle lifetime in seconds.
maxParticles?
Section titled “maxParticles?”
optionalmaxParticles?:number
Defined in: particles/src/types.ts:20
Maximum number of live particles. Default: 100.
optionalrate?:number
Defined in: particles/src/types.ts:22
Particles per second for continuous emission. Default: 10.
rotation?
Section titled “rotation?”
optionalrotation?:NumberRange
Defined in: particles/src/types.ts:34
Initial rotation in radians. Default: 0.
rotationSpeed?
Section titled “rotationSpeed?”
optionalrotationSpeed?:NumberRange
Defined in: particles/src/types.ts:36
Rotation speed in rad/s. Default: 0.
scale?
Section titled “scale?”
optionalscale?:NumberRange|Lerped
Defined in: particles/src/types.ts:30
Uniform scale (or lerped). Default: 1.
spawnOffset?
Section titled “spawnOffset?”
optionalspawnOffset?:object
Defined in: particles/src/types.ts:44
Random offset from entity position at spawn time.
optionalx?:NumberRange
optionaly?:NumberRange
speed?
Section titled “speed?”
optionalspeed?:NumberRange
Defined in: particles/src/types.ts:26
Initial speed in px/s. Default: 0.
texture?
Section titled “texture?”
optionaltexture?:TextureInput
Defined in: particles/src/types.ts:16
The texture for all particles in this emitter.
textureKey?
Section titled “textureKey?”
optionaltextureKey?:string
Defined in: particles/src/types.ts:18
Texture asset key (serializable alternative to texture).
optionaltint?:number
Defined in: particles/src/types.ts:38
Tint color. Default: 0xffffff.