- Home /
How can I click the particles emitted from a Particle System
I've added a Particle System. Now I want to kill each particle as soon as I tap on them. Also, after tapping on the particle, I want to get the name of the gameobject that has the particle system component from which the particle had been emitted. Please suggest me a way of how I can achieve this task.
Answer by tormentoarmagedoom · May 14, 2018 at 01:09 PM
Good day.
First you need to create a particle as a prefab, and make the particle system to spawn that prefab as a particle.
And just use that prefab as any other gameobject to interact with it. Colliders, scripts, etc...
Bye!
Hi, Thanks for the quick reply. But can you guide me on how to add a prefab as a particle? I can only see the option of accepting only material type objects as the renderer for particles. P.S: $$anonymous$$y game is in 2D, if that helps.