Annotation Interface EmitterInfo
This annotation contains default values for the initialization of an emitter.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIndicates whether the emitter should be activated on initialization.intSpecifies the duration of the emitter.intSpecifies the maximum number of particles the emitter can have.Specifies the horizontal alignment of the emitter's origin.Specifies the vertical alignment of the emitter's origin.intSpecifies the maximum time-to-live (TTL) of particles.intSpecifies the minimum time-to-live (TTL) of particles.Specifies the type of particles emitted.intSpecifies the update rate of particles.Specifies the required quality level for the emitter.intSpecifies the amount of particles to spawn.intSpecifies the rate at which particles are spawned.
-
Element Details
-
activateOnInit
boolean activateOnInitIndicates whether the emitter should be activated on initialization.- Returns:
- true if the emitter should be activated on initialization, false otherwise.
- Default:
true
-
duration
int durationSpecifies the duration of the emitter.- Returns:
- the duration of the emitter in milliseconds.
- Default:
0
-
maxParticles
int maxParticlesSpecifies the maximum number of particles the emitter can have.- Returns:
- the maximum number of particles.
- Default:
400
-
particleMaxTTL
int particleMaxTTLSpecifies the maximum time-to-live (TTL) of particles.- Returns:
- the maximum TTL of particles in milliseconds.
- Default:
1500
-
particleMinTTL
int particleMinTTLSpecifies the minimum time-to-live (TTL) of particles.- Returns:
- the minimum TTL of particles in milliseconds.
- Default:
400
-
particleUpdateRate
int particleUpdateRateSpecifies the update rate of particles.- Returns:
- the update rate of particles in milliseconds.
- Default:
40
-
spawnAmount
int spawnAmountSpecifies the amount of particles to spawn.- Returns:
- the amount of particles to spawn.
- Default:
20
-
spawnRate
int spawnRateSpecifies the rate at which particles are spawned.- Returns:
- the spawn rate of particles in milliseconds.
- Default:
100
-
originAlign
Align originAlignSpecifies the horizontal alignment of the emitter's origin.- Returns:
- the horizontal alignment of the emitter's origin.
- Default:
CENTER
-
originValign
Valign originValignSpecifies the vertical alignment of the emitter's origin.- Returns:
- the vertical alignment of the emitter's origin.
- Default:
MIDDLE
-
requiredQuality
Quality requiredQualitySpecifies the required quality level for the emitter.- Returns:
- the required quality level.
- Default:
VERYLOW
-
particleType
ParticleType particleTypeSpecifies the type of particles emitted.- Returns:
- the type of particles emitted.
- Default:
RECTANGLE
-