[Solved]Is it possible to remove the green lines in the middle of a polygon collider2D.

In my 2D scene I have 5 objects. All of them uses 2D polygon colliders, but only the two of them with green lines in the middle of their collider don’t work with some core mechanic of the game*. Is there a method to remove this green lines without reducing the amount of vertices to under 9?

*The problem is that even when i use Physics2D.IgnoreCollision the player still hits this lines.

Bad Collider

Bad Collider

Good Collider

Good Coillider

I just found a way to do it, or maybe at least. If i use a Edge Collider instead of a Polygon i get the effect i want. Wierd I have not thought of this method before.