- Home /
Question by
Nosmo · May 08, 2018 at 05:29 PM ·
objectdestroyparticlesystemdestroygameobjectparticleeffect
particle effect activation
Hi im trying to get a particle effect to start after 10 seconds to cover an asset when it gets destroyed
code:
public GameObject objectToDestroy;
public GameObject effect;
void Update ()
{
{
Instantiate (effect, objectToDestroy.transform.position, objectToDestroy.transform.rotation);
Destroy (objectToDestroy, 10f);
Debug.Log ("Plasma Fire destroyed");
}
}
}
I have similar code in other scripts to do the same think but they also include on trigger enter/exit while this is automatic after 10 secs
Any suggestions as to where im going wrong?
Comment
Your answer
Follow this Question
Related Questions
Playing particle on 1 instance of cloned prefab 0 Answers
how to save destroyed state of an object 1 Answer
How to destroy an instantiated object 2 Answers
How to destroy live particle in Shuriken 1 Answer
auto destruct a particle system. 3 Answers