engine icon indicating copy to clipboard operation
engine copied to clipboard

Add ParticleSystem.Emit, Emit a number of particles from script.

Open friuns2 opened this issue 1 year ago • 3 comments

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

friuns2 avatar Nov 01 '23 12:11 friuns2

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

yaustar avatar Nov 01 '23 12:11 yaustar

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.

LeXXik avatar Nov 01 '23 12:11 LeXXik

Related forum: https://forum.playcanvas.com/t/particles-optimizations/34801

LeXXik avatar Feb 09 '24 10:02 LeXXik