- Home /
Question by
adamchakov · Feb 18, 2014 at 08:09 PM ·
gameobjectparticlesdestroybox
Particle system show up when gameobject gets destroyed
hey everybody , please help me with this issue , what i want is ,when a gameobject (called "box") gets destroyed , i want a particle system to show up and play an animation called 'boxcrash'. please help guys Thanks.
Comment
Answer by marcfielding · Feb 18, 2014 at 08:25 PM
Initially you want to create your particle affect to however you want it and then turn it into a prefab.
Then in the same piece of code you destroy it in you can do INSTANTIATE on the particle system!
thanks for the reply ,the problem is i didn't create any destroy code yet :/