# Emitter模块
# 概述
Emitter(发射器模块),用于设定粒子发射相关的属性,如发射间隔时间、粒子系统持续时间、发射是否循环等。

# 属性描述
| 属性 | 功能 | 类型 |
|---|---|---|
| duration | 粒子系统运行持续的时长。 | number |
| looping | 若勾选,则表示当粒子系统运行结束后,继续从头开始运行。 | boolean |
| playOnAwake | 若勾选,则表示粒子系统加载完成后立即执行。 | boolean |
| maxParticles | 粒子系统一次运行过程中的最大的粒子个数,若超过最大个数,新粒子将无法发射。 | number |
| rateOverTime | 每秒粒子喷发的数量。 | engine.Particle.AdvancedProperty.ConstantProperty engine.Particle.AdvancedProperty.TwoConstantsProperty engine.Particle.AdvancedProperty.CurveProperty engine.Particle.AdvancedProperty.TwoCurvesProperty |
| startDelay | 粒子系统开始运行后,延迟发射粒子的时间(单位秒)。 | engine.Particle.AdvancedProperty.ConstantProperty engine.Particle.AdvancedProperty.TwoConstantsProperty engine.Particle.AdvancedProperty.CurveProperty engine.Particle.AdvancedProperty.TwoCurvesProperty |
| bursts | 在某个时间点发射一定数量的粒子。 | engine.Particle.ParticleEmitter.ParticleEmitterBurst[] |
| - time | 触发的时间点。 | number |
| - count | 发射的数量。 | engine.Particle.AdvancedProperty.ConstantProperty |
| - cycles | 触发的次数。 | number |
| - interval | 每次触发的时间间隔,必须大于0。 | number |
| - probability | 触发的概率。 | number |