engine
engine copied to clipboard
Add ParticleSystem.Emit, Emit a number of particles from script.
ParticleSystem.Emit(int count);
Emit a number of particles from script from a specific position and rotation..
Use case example: Instead of using an object pool and play(), you could emit a certain amount of particles from a specific position and rotation.
https://www.youtube.com/watch?v=GBWwEoT_E9o
The OP means to add functionality like Unity's emit function (see https://docs.unity3d.com/ScriptReference/ParticleSystem.Emit.html) so that the same particle system can emit particles in different positions in the same frame
If I understand the feature request correctly, then it would allow to use the same particle system with multiple emitters. Each emittter in its own position. Presumably, this should be cheaper, than instantiating a new system.
Related forum: https://forum.playcanvas.com/t/particles-optimizations/34801