In Unity 2D, a sliding GameObject (my player in my platform game) will sometimes get stuck on the edge between two BoxCollider2D next to each other. Within a tilemap, this problem is easily solved by simply adding a CompositeCollider2D to the tilemap. However, in my game there are other objects that can't be grouped together in a tilemap, e.g. moving platforms or some kinds of ground tiles with special properties. Therefore the issue persists. Things I have tried:
I have finally found a solution
Just add a CompositeCollider2D to each independent collider, even if it defeats the whole point of a CompositeCollider, i.e. the CompositeCollider is used for only one collider.