- Home /
Question by
Cookiemonster04 · May 27, 2020 at 12:36 AM ·
2dcollisionparticles
Run code upon particle system collision? (2D)
Hello, I have particles on my scene where if it collides with a player I want to run some code. I have the particles colliding with my game objects just well but no code runs when they collide.
particle settings, collision is checked, Type is World, Mode is 2D, Collision Quality is High, Collides with Everything
void OnParticleCollision(GameObject other)
{
if(other.tag == "Player")
{
Debug.Log("Working");
}
}
Comment
Your answer
Follow this Question
Related Questions
Particles and 2D games 1 Answer
[2D] Getting particles to collide with a game object(Explosion debris effect) 0 Answers
(2D intersection+picture)How to show up the invisible object when intersect with another object. 1 Answer
Particle System rendering behind Sprites 16 Answers
Collision detection not working properly with 2D sprites 1 Answer