2
\$\begingroup\$

I am working on isometric tilemap in Unity 2019.4.8f1.

In the Tile Palette panel, the selection is always 1 block away. Please see this screenshot:

Tile Palette screenshot

In the screenshot, apparently I selected an empty tile, but in fact I am select the green tile with flowers. How come? Every selection is one tile away. The same issue happens in the Tilemap selection mode too. I have to select the adjacent tile in order to select the tile I want.

How do I fix it? It's quite annoying.

UPDATE I have added the settings of Grid, Tilemap as well as the import settings of the tile sprite sheet below.

Tilemap settings

Grid settings

Tile sprite sheet import settings

Sprite editor settings


UPDATE 2 Changed the Pivot in Sprite Editor to Bottom Center

Recreated the Tile Palette, and it looks like hovering 0.5 unit up.

Pivot bottom center

\$\endgroup\$
  • \$\begingroup\$ How are the pivots configured on these tile sprites? \$\endgroup\$ – DMGregory Aug 27 '20 at 11:30
  • \$\begingroup\$ Sorry for late reply. Tile Anchor at Tilemap is X: 0.5, Y: 0.5, Z: 0. For the Grid, all anchor and pivot values are 0.5. \$\endgroup\$ – Raptor Aug 31 '20 at 2:36
  • \$\begingroup\$ And for the individual tile sprites? Where is their pivot set? \$\endgroup\$ – DMGregory Aug 31 '20 at 11:43
  • 1
    \$\begingroup\$ To solve the different heights issue, use "Custom" and adjust the y position of the pivot as needed. \$\endgroup\$ – DMGregory Sep 4 '20 at 3:53
  • 1
    \$\begingroup\$ Since you have your actual project to be able to.take screenshots of the settings that worked for you, I think you'd be in a batter position to write a clear and detailed answer, if you'd be willing. :) \$\endgroup\$ – DMGregory Sep 4 '20 at 6:22
1
\$\begingroup\$

Thanks to @DMGregory, the problem is resolved. The root cause of the problem is the Pivot configured in the Sprite Editor is incorrect.

After setting the Pivot to "Center", regenerate the tiles and reset the Tilemap pivot points to X=0.5, Y=0.5, Z=0, the selection in the Tile Palette panel becomes normal again.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.