- Home /
Detect different particles
So I think I may know a solution to my issue, but I figured I would ask to see if there was a better way. I have a particle system that activates when the player presses a certain key, I have found the OnParticleCollision - which gives me an object of type Collision to work with if that triggers. My question is: Is there a way to detect particles from multiple systems and tell them apart? From what I can tell the particles do not hold a tag or a name (Throws an error when checking for these) Basically I want to know if the collision was from system A or B.
My solution (only works because the particles go in a straight line, this would break if there was bouncing / arcing involved) is to spawn an empty object when the particles emit and just detect the collision with that - it would hold a tag, and solve the problem.
Your answer
![](https://koobas.hobune.stream/wayback/20220613101052im_/https://answers.unity.com/themes/thub/images/avi.jpg)