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

Question Can I make many single tilemaps' colliders composited?

Discussion in '2D' started by ahriiiiii9, Jan 3, 2023.

  1. ahriiiiii9

    ahriiiiii9

    Joined:
    Jan 3, 2023
    Posts:
    2
    upload_2023-1-3_19-57-52.png upload_2023-1-3_19-58-24.png
    I have more than two tilemaps, and I want to combine multiple colliders together.
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,622
    Then place the CompositeCollider2D and Rigidbody2D on the parent, not each TilemapCollider2D GameObject.

    A TilemapCollider2D is nothing special to the composite, this is the same for other collider types.
     
    ahriiiiii9 likes this.
  3. ahriiiiii9

    ahriiiiii9

    Joined:
    Jan 3, 2023
    Posts:
    2
    It works! Thank you!