Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Small tiles problem

Discussion in '2D' started by display_frost, Mar 3, 2021.

  1. display_frost

    display_frost

    Joined:
    Mar 3, 2021
    Posts:
    2
    Why dont my tiles fill the whole spot? wdwdwdw.PNG
     
  2. Derekloffin

    Derekloffin

    Joined:
    Mar 14, 2018
    Posts:
    322
    Your ppu (pixel's per unit) is probably set wrong for the sprites. Each cell is 1 unit, so you want your ppu to be set such that a tile completely covers your unit area. Say you have 32x32 pixel tiles, you then want 32 ppu. Most often you just have to set your ppu to match the pixel size of your tile, unless you're dealing with extra large tiles that span over 1 tile (say a tree, or building, or the like).

    You'll find the ppu setting under the sprite import setting. It defaults to 100.
     
    display_frost likes this.
  3. display_frost

    display_frost

    Joined:
    Mar 3, 2021
    Posts:
    2
    Thanks it fixed it!