Palette Size Wrong?

Hi

I’ve set my sprite pixel size to match what it should 70 ppu.
It looks correct when painting the tiles, but in the palette map itself it’s not correct. How can I get it to align correctly please?

Hi Jamie,

Where did you get the Tilemap package? From Window > Package Manager?

Hi Nina

The sprite sheet came from a Kenny Asset bundle I bought. The PNGs are 70x70 so I imported the sprite sheet they’re on and set the pixels per unit to 70 and then spliced it up with 70x70 As the measurements and then dragged them to the tile map. When painting the tiles they’re the correct size but on the palette they’re not and I think it’s stopping me from rearranging them on the palette.

I meant the Tilemap package, not the sprites. Since your sprite looks correct in the scene view, there might be an issue with the Tile Palette. That issue could be caused by a bug. For this reason, I asked where the Tilemap package came from because it could be an outdated version which does not work well with your version of Unity.

Hi Nina

I didn’t know I could get different ones. I’m following along with Rick on the TileVania bonus section on the 2D course. So it’s the one that comes with Unity. I decided to use different art assets to Rick though.

I noticed when Rick imported his sprite sheet asset he didn’t change the PPU at first. First he added it to the tile map, where it showed fine in the tile palette and then he painted with it showing that it didn’t fix the tile so grid size properly so then he changes the sprite sheet PPU.
Again it paints absolutely fine. Maybe something to do with the tile palette properties? Couldn’t see what/where to change though.

Remove the Tilemap package (not the sprites!) and install it via Window > Package Manager.

I just realised the problem. The Unity documentation says the tile palette grid size is automatically set to the size of the tile/sprite in the bottom left corner.
Most of my sprites were 70x70 and the PPU set to 70, but I had a few sprites on my spritesheet at a different size. One of these happened to be in the bottom left corner when dragged to the tilemap.

image

That’s good to know. Thanks for sharing your solution. :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms