Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Tilemap collider shapes are wonky. How can we specify them?

Discussion in '2D Experimental Preview' started by wprevett, Oct 3, 2017.

  1. wprevett

    wprevett

    Joined:
    Aug 12, 2017
    Posts:
    9
    Hey, as the title says, I'm looking for a way to specify what the collider should be for each tile. It tries to auto fit but doesn't do what I'd like and there doesn't appear to be a way to change it. I hope I'm just missing it because it would be a huge time saver.

    I've had to add all my colliders separately which is becoming a mess.

    Any help would be appreciated!
     
  2. jessewwarner

    jessewwarner

    Joined:
    Jun 30, 2017
    Posts:
    8
    Hey I had the same problem and this time was fortunate enough to stumble upon the answer pretty quick. Go into the sprite editor of your tile sprite and in the top left corner under the tab that says "Sprite Editor" is a button the says "Sprite Editor" with an up and down arrow. Click that then click "Edit Physics Shape" and you can set the vertices for the physics of each tile. Hope this solves your problem :)
     
  3. wprevett

    wprevett

    Joined:
    Aug 12, 2017
    Posts:
    9
    You're a life saver. thanks!
     
  4. MooseStache

    MooseStache

    Joined:
    May 29, 2018
    Posts:
    27
    You sir deserve an award, that solved my issue!
     
  5. Damnielvevo

    Damnielvevo

    Joined:
    Sep 10, 2020
    Posts:
    2
    You're a hero we want, but don't deserve!