How to detect if a GameObject is inside a Particle?

I want my player to get damaged if leaves the withe trail showed bellow.

I made that trail with a particle system with a emission rate over time of 50, I did it because it was the only way I came up with and I don’t know if is the most optimized way.


There are particle collision/trigger functions, but its not like thecollider ones with Enter, Stay and Exit. You could possibly set a boolean variable to be set to true when the particle trigger function is called.