Search Unity

I can't create split an edge collider (create a hole)

Discussion in '2D' started by RagstoHrishes, Nov 18, 2020.

  1. RagstoHrishes

    RagstoHrishes

    Joined:
    Nov 5, 2020
    Posts:
    1
    Hi,

    I've been trying to split an edge collider but when I delete a vertex island, the two vertexes on the left and right are still connected and don't leave a hole. I feel like there should be a simple feature of just splitting an edge collider at a vertex you select.
     

    Attached Files:

  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,500
    An EdgeCollider2D is a single set of continuous edges, it cannot be two sets of edges. For that you'd need two colliders.
     
    nandanramesh13 likes this.