I was wondering if the following was possible. I'm working on a 2d top down game where I have derby fly off the screen with a particle trail. At the moment I have this setup by parenting the particle effect to the derby object. My problem with this is, I'm trying to destroy the object when it leaves the screen. When I do this the particle trail disappears. Is there a way to get the particle trail to hang around until it disappears?
I can think of two options:
1 - let the object go a little further as to get the particles of screen as well
2 - detach the particles and destroy them after say 5sec
This piece of code from the help docs should get you going:
transform.DetachChildren();
Destroy(gameObject);