Search Unity

2D Tile Palette off center

Discussion in '2D' started by codyto1999, Apr 29, 2021.

  1. codyto1999

    codyto1999

    Joined:
    Dec 15, 2020
    Posts:
    1
    Hello! I am using a starting project to learn game mechanics. I was trying to paint another house in and used the below example to show that its off center. The project already uses 16 PPU so I got 16x16 pixel assets. I created a new palette and all looks good until I go to paint on my tilemap. The paint brush seems to be off center from where I am trying to paint tiles in. Any help is appreciated. Thanks!

    upload_2021-4-29_15-7-52.png
    upload_2021-4-29_15-9-10.png
     
  2. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    1,068
    It looks like the Pivot of your Sprites are set to the Top Left, while the Tilemap likely has a default Tile Anchor set to the center of the cell. This will cause the Top Left corner of your Sprites to be set to the center of the Tilemap cell when you are painting.

    You could either set the Pivot to Center or change the Tilemap's Tile Anchor to (0, 1, 0) (Top Left).