Distinguishing multiple collider on a single game object

I have a polygon2D collider and a Circle2D collider. I have a script showing which colliders are colliding so I can load a certain scene whenever it hits the circle collider. However, all I get is the polygon collider colliding and not the circle collider.

I had a similar problem.

My solution was simple. Have a diferent object for ech collider (as childs of the main object). This way, you can check which collider is…

void OnCollisionEnter(collider contactCollider)
{
if (contactCollider.gameObject.name == (PolygonColliderGameObjectName)) {  }
else if (contactCollider.gameObject.name == (CircleColliderGameObjectName)) { }
}

If hellped, Accept the answer! :smiley: