27-05-2020, 03:59 PM
(This post was last modified: 27-05-2020, 04:00 PM by josemendez.)
Hi there,
The emitter speed is used in both modes, as it defines the speed of the particles being emitted.
To emit a single burst by code, you can call EmitParticle() as many times as distribution points there are in your shape:
unsurprisingly, this is exactly the same that Burst emission does internally (BeginStep() method of ObiEmitter.cs). The only difference is that Burst mode waits until the amount of active particles is 0 (all particles are dead) before emitting again. So, the behavior you describe is the intended one: burst, wait for all particles to die, then burst again.
The emitter speed is used in both modes, as it defines the speed of the particles being emitted.
To emit a single burst by code, you can call EmitParticle() as many times as distribution points there are in your shape:
Quote:int emissionPoints = GetDistributionPointsCount();
for (int i = 0; i < emissionPoints; ++i)
{
EmitParticle(0,stepTime);
}
unsurprisingly, this is exactly the same that Burst emission does internally (BeginStep() method of ObiEmitter.cs). The only difference is that Burst mode waits until the amount of active particles is 0 (all particles are dead) before emitting again. So, the behavior you describe is the intended one: burst, wait for all particles to die, then burst again.