Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Feature Request Tile's Collider shape

Discussion in '2D Experimental Preview' started by bartuq, Apr 19, 2019.

  1. bartuq


    Sep 26, 2016
    Please consider an option to set Collider shape on the Tile Palette/Individual tiles. I know we already have Collider Type: None, Sprite, Grid, but it's not enough for some projects, especially 2D Isometric.

    What I mean:
    For example in Godot Engine "you can add collision shapes to individual tiles and the entire map will act as a single collider, simplifying your collision code". Other things can also be done a lot easier.

    4:20 LINK
  2. ChuanXin


    Unity Technologies

    Apr 7, 2015
    This is broken up into a bunch of different features here:

    Setting a custom Physics Shape for a Sprite (or the Sprite/s used in a Tile):
    Normal Sprites rendered using a SpriteRenderer with a PolygonCollider2D can benefit from this. Tiles with the Collider Type: Sprite will use this shape.

    Combining Collider2D/s into a single Collider2D can be done with the CompositeCollider2D:
    You can add a CompositeCollider2D in a parent GameObject or with the Collider2D GameObject (or TilemapCollider2D) and toggle the "Used By Composite" property to combine the Collider2D/s.