First, you need to create a new Layer. Call it “ParticleCollision”. (Go to Edit → Project Preferences → Tags. and select “User Layer 8”)
Next, go into the World Particle Collider and set the “Collides With” option to ONLY the ParticleCollision layer. Next, duplicate all the colliders that the Particles will collide with, and set their layer to “ParticleCollision” and check the “Is Trigger” option. Now, you can attack a script to the duplicated collider:
function OnTriggerEnter() {
// Insert code here
}
function OnTriggerStay() {
// Insert code here
}
function OnTriggerExit() {
// Insert code here
}