How to Make Particle Effects Function as a Trigger That Deals Damage

In my game, I have numerous particle effects that I want to damage the player if they touch it (fire, water, gas.) I started using the built in collision system, and I got the damage working, but I could only get it to function with non-trigger colliders. So the water does damage the player, but it also bounces off like little blue balls. I’ve tried using the trigger tab on the particle system and swapping in the code equivalent, but I do not understand it fully and it will not work. Here is the code I am using. For clarification this is on the player script and the object containing the particle system is tagged as “Muse Attack”.

 void OnParticleCollision(GameObject other)
    {
        Debug.Log("Hit");
        if(other.tag == "Muse Attack")
        {
            TakeDamage(1);
        }
    }

As well as how I set the particle system up. A lot of sources tell me to just line up a collider with the effect, but with the water especially it follows a physics based arc, so that won’t work. Particle collision is just confusing me in general so any help is appreciated.


Your questions talk about triggers yet you have collision ticked use the triggers module of the particle system define which colliders it can “collide” with then handle the rest in a script using the callback option of the dropdowns. You can read further here Unity - Manual: Triggers module