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
- "Draw Additional Lights Shadowmap" calls increase when custom MaterialBlockProperty is used
- Crash on _platform_memmove when importing the "Dragon Crashers - URP 2D Sample Project" to a new 2D project
- "Shader is not supported on this GPU" warnings and and shaders are not loading when building the project for non-Chromium browsers
- [iOS][URP] The screen flickers and the "Execution of the command buffer was aborted due to an error during execution" error is thrown continuously
- Shortcut Manager shows empty conflict filter when resolving runtime conflicts involving different contexts
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.