Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

TilemapCollider2D not getting updated

Discussion in '2D' started by micdolinski, Feb 16, 2019.

  1. micdolinski

    micdolinski

    Joined:
    Feb 16, 2019
    Posts:
    4
    Hello,

    I was trying to get into tile map based game dev process in Unity and I checked the 2d-techdemo repo (https://github.com/Unity-Technologies/2d-techdemos). I noticed that in Brick example the tiles are being destroy when the ball hits them BUT it looks like underlaying collider stays. So even though the tile is not there anymore the ball would bounce on its collider.
    Is there any way to update the TilemapCollider2D after underlaying tilemap is modified?
     

    Attached Files:

    • bug.gif
      bug.gif
      File size:
      172.9 KB
      Views:
      574
  2. PandawanFr

    PandawanFr

    Joined:
    Nov 27, 2013
    Posts:
    68
    Yup, getting the same issue! I searched it everywhere online and it appears to be a bug that was supposedly "fixed" but came back.
     
  3. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    1,068
    Hi, unfortunately there is a bug regarding this in 2018.3.4f1 and above. This will be fixed soon!

    However, if you are not using this version or related versions, do file a bug with the Unity Bug Reporter, thanks!
     
  4. micdolinski

    micdolinski

    Joined:
    Feb 16, 2019
    Posts:
    4
    Yep, I was using this version. I already downgraded and it works fine.Thank you for clearing it out!
     
  5. alex18881

    alex18881

    Joined:
    Feb 6, 2019
    Posts:
    1
    For me helped checking "Used by composite"
    upload_2019-2-19_15-37-14.png
    And then adding a new CompositeCollider2D to tilemap.