- Home /
How to spawn one single particle at the emitter spawn?
I'm trying to make a particle that shows damage text. I'm new to the particle system but playing with it I can't get what I want.
It will either not spawn the particle at all, or spawn multiple when it fires. How do I get it to spawn exactly one as soon as it fires?
Answer by Chimer0s · Jan 23 at 08:48 AM
If you don't want to change anything other than how many particles are spawned, make sure looping is disabled for the particle system, then go down to the emission module and set emission over time to 0, then just below that click the little + button under bursts and add one with a single particle at the start. Your emission module should look like this:
Answer by Pangamini · Jan 23 at 01:07 AM
You can emit particles directly from script using ParticleSystem.SetParticles. It sets the state of all particles in the system. If you are planning to have multiple, you'd have to use GetParticles first, and then add / modify and then use SetParticles. Probably not the most efficient way. Perhaps your emission module is not set up right. Set the emission module to only emit one particle at start (don't use the emission over time, set it to zero). Disable looping in the main module. Then, when you call ParticleSystem.Play(), only one particle should be emitted each time.
Your answer
Follow this Question
Related Questions
How to destroy spawned particle?,How to delete all particle spawned? 0 Answers
make particles move in world space 1 Answer
Particle delay 1 Answer
Matching collision normal for sub-emitter 0 Answers
Particle System not working. 1 Answer