- Home /
One particle pulse when gameobject is destroyed.
Hello
I have been messing around with this for some hours now, and i just cant seem to figure it out.
what i want to do is to have a single pulse of a particle system when i destroy a box.
I saw a video tutorial once which explained it but i cant find it anymore, and now im here :)
I've set up the particle system so its set to 'one shot' but how do i script it so the pulse is fired when i click the object and it is destroyed.
im using C# for this.
Thanks in advance
- Seth
Answer by flaviusxvii · Mar 10, 2011 at 05:43 PM
Put the particle system in a prefab and use Instantiate to make a copy when you destroy the object you click.
Answer by loopyllama · Mar 10, 2011 at 02:28 PM
check out ParticleEmitter.Emit()
we are lucky to have good documentation with unity http://unity3d.com/support/documentation/ScriptReference/ParticleEmitter.Emit.html
Your answer
Follow this Question
Related Questions
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers
How to destroy particle gameobject after its finished? 2 Answers
Particle system not destroying. 3 Answers
Player Guide (particles) destroy collectable 0 Answers
Particle system show up when gameobject gets destroyed 1 Answer