Search Issue Tracker

By Design

Votes

0

Found in

2017.3.0a1

2018.3.0a1

2018.3.6f1

2019.1.0a1

2019.2.0a1

Issue ID

1132919

Regression

No

Tile Palette order tiles in incorrect order if Spire was sliced with "Automatic"

2D

-

Steps to reproduce:
1. Open attached project
2. Observe that Sprite "Tiles" is sliced using 'Automatic" option
3. Open Tile Palette window and Drag n Drop "Tile" sprite

Expected result: Tile Palette is ordered like in the preview.
Actual result: Tile Palette ordering is incorrect (picture)

Reproduced in: 2017.4.23f1, 2018.3.9f1, 2019.1.0b7, 2019.2.0a8

  1. Resolution Note:

    The Tile Palette tries to detect whether a Texture is a Spritesheet by checking if the Sprites all have the same size. When slicing it through cells or through size, the output would generally be of the same size given logical inputs (eg. sizes of 32x32 with padding and offset of 1 for the given Texture). This will allow the Tile Palette to correctly set all Tiles as in the Spritesheet.

    However, when the Spritesheet is sliced automatically, the automatic slicing is done through the outline of each Sprite. For this Texture, the fences and the walls will result in smaller sprites as their outlines as small and do not include the whitespace buffers for the cell. As a result, the Tile Palette cannot detect that the Texture is a Spritesheet and will place the Tiles in a matter that minimises the space used.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.