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"
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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.