Search Unity

Missing tiles when dragging sprite sheet into tile palette

Discussion in '2D' started by Destrucity, Oct 22, 2018.

  1. Destrucity

    Destrucity

    Joined:
    Sep 28, 2014
    Posts:
    17
    I'm noticing what seems like a bug when I drag a sliced multiple sprite into a tile palette to create tiles.

    For example:
    1. Download this tileset https://vnitti.itch.io/taiga-asset-pack and add the contained "Tileset.png" file to your 2D project.
    2. Change the import settings to be 16 pixels per unit, multiple sprite mode, point filter mode.
    3. Open the sprite editor and slice by cell size (16x16).
      1. This results in 62 sprites: https://i.imgur.com/JWxiPps.png
    4. Create a new tile palette
    5. Drag the multiple sprite file into the empty tile palette and save the tiles in a folder.
      1. This results in only 46 tiles being generated: https://i.imgur.com/Op07YPH.png
    You can easily visualize the problem by comparing the arrangement of tiles in the resulting tile palette to the arrangement of the tiles in the sprite editor: https://i.imgur.com/RtUNOzH.png


    Anyone have any idea what's going on? Is this a bug or am I overlooking something?

    Any insight is much appreciated.
     
    ngmane likes this.
  2. ngmane

    ngmane

    Joined:
    Apr 25, 2018
    Posts:
    9
    Yes i have been experiencing this too.
     
  3. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    If you want to keep the arrangement of tiles from sprite sheet to tile pallete then drag the parent sheet into the pallete instead of all the children and the layout will match
     
  4. ngmane

    ngmane

    Joined:
    Apr 25, 2018
    Posts:
    9
    @rakkarage

    This is a different issue, not the one where order of tiles are different when one drags the children.
    Due to the bug even when one drags the parent sheet it only imports < n tiles out of the total n number of tiles in the sheet.

    Update: This happens only when one picks 16x16 as the slice size in the sprite editor i think.
    @Destrucity can you confirm if its the same for you too? pick something like 32x32 in sprite editor.

    Update 15th Dec:
    Reported the issue and here is the issue tracker link. Vote this to make this issue more visible.
    https://issuetracker.unity3d.com/issues/missing-tiles-when-dragging-sprite-sheet-into-tile-palette
     
    Last edited: Dec 15, 2018
    richard-cdsp likes this.