In this lesson, you will master the Emission module to precisely control particle density and timing, allowing you to move beyond continuous flows into structured, rhythmic visual events.
Mastering the Emission Module
The Emission module is the heartbeat of your particle system. While a default system might emit a steady stream of particles, advanced VFX often require granular control. The Rate over Time parameter defines the continuous flow (particles per second), while Rate over Distance allows particles to spawn based on the emitter's movement. This is critical for effects like magical footprints or burning trails, where you want the density to remain consistent regardless of how fast the object moves.
Orchestrating Bursts
For non-continuous effects like explosions, sparks, or muzzle flashes, we use Bursts. Instead of a constant stream, a burst triggers a specific number of particles at a precise point in time. You can define:
- Time: When the burst occurs relative to the system's start.
- Count: The number of particles emitted.
- Cycles: How many times the burst repeats.
- Interval: The delay between cycles.
By chaining multiple bursts with varying counts and intervals, you can simulate complex behaviors like a flickering flame or a rapid-fire weapon effect.
// Conceptually, you can manipulate bursts via script
// to react to gameplay events:
var emission = particleSystem.emission;
emission.SetBursts(new ParticleSystem.Burst[] {
new ParticleSystem.Burst(0.0f, 50) // Emit 50 particles immediately
});
Practical Application: The "Pulse" Effect
To create a rhythmic "pulse," set your Rate over Time to 0 and add two bursts: the first with a Count of 100 at Time 0, and a second burst with a Count of 50 at Time 0.5. By toggling the Cycle count to infinite, you create a complex, mechanical heartbeat that looks far more sophisticated than a simple continuous emission. By balancing these properties, you ensure your visual effects feel grounded in the pacing of your game’s action rather than looking like generic "fountains" of particles.
Key Takeaway: Use Rate over Distance for movement-sensitive trails and stacked Bursts to create complex, non-linear rhythmic visual sequences.