- Home /
How to emit two partcle systems in one particle emmiter
I have a scrpt(which is the one below) and it works great but I need to know how to make it so it emits to partcle systems on the collision. Or if you know how to make a partcle emmiter emit two different particles at the same time, then that will work too.
var stars : ParticleEmitter;
function OnCollisionEnter (col : Collision) { Instantiate(stars, transform.position, transform.rotation); Destroy(gameObject); }
Comment
Answer by Owen-Reynolds · Apr 28, 2012 at 04:31 PM
The line Instantiate(stars, transform.position, transform.rotation);
is spawning the emitter. It finds the emitter through the public stars
variable that you made and dragged a prefab particleEmitter into.
Just setup a different emitter (stars2?) and spawn it the same way.
Your answer
![](https://koobas.hobune.stream/wayback/20220613070846im_/https://answers.unity.com/themes/thub/images/avi.jpg)