Particle

Emission Module

EmissionModule is the emission module of ParticleGeneratorModule. This module is used to handle the emission behavior of the particle system, including particle emission rate, emission shape, and burst behavior.

avatar

Properties

PropertyDescription
rateOverTimeThis is a ParticleCompositeCurve object, representing the particle emission rate. The default value is 10.
rateOverDistanceThis is a ParticleCompositeCurve object, representing the particle distance emission rate. The default value is 0.
shapeThis is a BaseShape object, representing the shape of the emitter.

Methods

MethodDescription
addBurst(burst: Burst)Add a burst behavior
removeBurst(burst: Burst)Remove a burst behavior
removeBurstByIndex(index: number)Remove a burst behavior by index
clearBurst()Clear all burst behaviors

Shapes

Currently, the engine has the following built-in emitter shapes, providing corresponding shape auxiliary displays when the particle component is selected.

Emitter Shape TypeDescription
BoxShapeBaseShape object, emitter shape is a cube
CircleShapeBaseShape object, emitter shape is a circle
ConeShapeBaseShape object, emitter shape is a cone
HemisphereShapeBaseShape object, emitter shape is a hemisphere
SphereShapeBaseShape object, emitter shape is a sphere

It looks like you haven't pasted the Markdown content yet. Please provide the content you want translated, and I'll help you with the translation while adhering to the rules you've specified.

Was this page helpful?