Tile map Props vs GameObject Props?

Hello,
I’m starting a 2D top down game, using Unity’s tile map. I was wondering if I should just make the props and decorations Game Objects, or if I should make them using the tilemap. And if I use the tilemap how should I handle irregular props. My tile-set is 1616 so how would i handle say 1632 or 32*32? I know you can resize the tilemap’s spacing and size but is that the best way. I just wanted to know what your preference is when making a 2D game.

Thank you.

A basic rule of thumb is: if it’s a static, non-interactable object that doesn’t need custom data, you can use a tilemap tile. If not, then you probably want a GameObject.

Tiles are more efficient but less fully featured than GameObjects + Components/MonoBehaviours.

For handling 16x16 vs 32x32, you can set the sprite texture’s Pixels Per Unit. If you want an object to take up >1 tile, then keep a lower Pixels Per Unit. For example, a 16 PPU on a 32x32 pixel sprite will be 4x as large as as 16 PPU on a 16x16 pixel sprite. For some art styles it’s not too big of a deal to have sprites that are larger than a tile, but for others you may want to split the sprite into subsprites no larger than a tile. In any case, you may need to set the Pivot point so it is correctly aligned with the grid.

In general, don’t resize the tilemap’s spacing and size; rather, modify the sprites.

2 Likes

That answers my question completely, thank you.