Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

TileMapExample03 colliders Chamber tiles

Discussion in '2D Experimental Preview' started by Chris333, Sep 17, 2016.

  1. Chris333

    Chris333

    Joined:
    Dec 15, 2014
    Posts:
    13
    Hi,

    how are getting the colliders on the chamber-tiles in the example TileMapExample03 set?
    The colliders are getting automaticly set on the corners/edges if i drag the chamber-sprites into the palette and paint with them. I just dont get it why unity dont set a collider around the whole tile like on the TempleBricks.
    Are there settings somewhere where i can change this behaviour or is it based on the color of the sprite?

    See attached jpg for the chamber-tiles.
     

    Attached Files:

  2. Johaness_Reuben

    Johaness_Reuben

    Unity Technologies

    Joined:
    Jan 27, 2016
    Posts:
    253
    The colliders are using the shape defined in the Physics Shape Editor. Open the Chamber texture in the Sprite Editor and then select Edit Physics Shape. Here you can edit the Physics Shape for each sprite.