EmitterConfig
Defined in: particles/src/types.ts:13
Emitter configuration.
Properties
Section titled “Properties”alpha?
Section titled “alpha?”
optionalalpha?:NumberRange|Lerped
Defined in: particles/src/types.ts:31
Alpha/opacity (or lerped). Default: 1.
angle?
Section titled “angle?”
optionalangle?:NumberRange
Defined in: particles/src/types.ts:27
Emission direction in radians. Default: 0.
damping?
Section titled “damping?”
optionaldamping?:number
Defined in: particles/src/types.ts:41
Velocity damping per second (0-1). Default: 0.
gravity?
Section titled “gravity?”
optionalgravity?:object
Defined in: particles/src/types.ts:39
Gravity in px/s². Default: none.
x:
number
y:
number
layer?
Section titled “layer?”
optionallayer?:string
Defined in: particles/src/types.ts:48
Render layer name. Default: “default”.
lifetime
Section titled “lifetime”lifetime:
NumberRange
Defined in: particles/src/types.ts:23
Particle lifetime in seconds.
maxParticles?
Section titled “maxParticles?”
optionalmaxParticles?:number
Defined in: particles/src/types.ts:19
Maximum number of live particles. Default: 100.
optionalrate?:number
Defined in: particles/src/types.ts:21
Particles per second for continuous emission. Default: 10.
rotation?
Section titled “rotation?”
optionalrotation?:NumberRange
Defined in: particles/src/types.ts:33
Initial rotation in radians. Default: 0.
rotationSpeed?
Section titled “rotationSpeed?”
optionalrotationSpeed?:NumberRange
Defined in: particles/src/types.ts:35
Rotation speed in rad/s. Default: 0.
scale?
Section titled “scale?”
optionalscale?:NumberRange|Lerped
Defined in: particles/src/types.ts:29
Uniform scale (or lerped). Default: 1.
spawnOffset?
Section titled “spawnOffset?”
optionalspawnOffset?:object
Defined in: particles/src/types.ts:43
Random offset from entity position at spawn time.
optionalx?:NumberRange
optionaly?:NumberRange
speed?
Section titled “speed?”
optionalspeed?:NumberRange
Defined in: particles/src/types.ts:25
Initial speed in px/s. Default: 0.
texture?
Section titled “texture?”
optionaltexture?:TextureInput
Defined in: particles/src/types.ts:15
The texture for all particles in this emitter.
textureKey?
Section titled “textureKey?”
optionaltextureKey?:string
Defined in: particles/src/types.ts:17
Texture asset key (serializable alternative to texture).
optionaltint?:number
Defined in: particles/src/types.ts:37
Tint color. Default: 0xffffff.