Search Unity

How do I create an outline collider for a tilemap, instead of having a collider around each tile?

Discussion in '2D' started by darthdeus, Apr 19, 2019.

  1. darthdeus

    darthdeus

    Joined:
    Oct 13, 2013
    Posts:
    80
    I've added a Tilemap Collider 2D to the tilemap object, which ends up adding a collider to each of the tiles. But since these tiles specify the inside of a walkable room, I need a way of inverting the collider so the tiles themselves don't have colliders, but their outside does.


     
    HalconVengador likes this.
  2. Deleted User

    Deleted User

    Guest

    You must tick "Used by composite" in the Tilemap Collider 2D... and add the "Composite Collider 2D" afterwards. ;)
     
  3. mpodlesny

    mpodlesny

    Joined:
    Jun 29, 2020
    Posts:
    43
    Thank you! This helped a lot. Exactly what I was looking for.