particle system collision 2d

hello ,
can anyone help me i am developing a game where i want to particle system to be a enemy so is there a WAY to make collision with particle system

thanks all answers are highly appreciated

Tick the “Send Collision Messages” box under collision. I had the same problem and doing that worked for me

Hi, there is a way in a 3d game, particles can collide with 3d colliders, not 2d (yet hopefully).

In the inspector, in the Particle System you will have to trigger ON Collision, and the last variable is “Send Collision Messages”, which has to be true.

Here is an example of the code you can have:

You can have something like:

	void OnParticleCollision(GameObject other)
		if (other.tag.Equals ("Example"))
			//do stuff when a particle collides with the collider.

Without knowing for what are you going to use it, you have to see that if you have a lot of particles a lot of times this message is going to be invoke.

Hope it helps, cheers!

Is it not possible to add a collider which fits your particule system size/shape? If not you can put it under a parent game object and put the collider to the parent.

Or you can check the solution there: Unity - Scripting API: MonoBehaviour.OnParticleCollision(GameObject)