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
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
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
No one has followed this question yet.
using Contains(gameObject) to find and destroy a gameObject from a list
Particle system show up when gameobject gets destroyed
Player Guide (particles) destroy collectable
How do I can destroy the object particles that are in collision with another object?
Particle system not destroying.