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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Help - Tile Size in Grid

Discussion in '2D' started by wyrmheart, Nov 18, 2019.

  1. wyrmheart

    wyrmheart

    Joined:
    Nov 18, 2019
    Posts:
    1
    Hi!

    Before hand, I'am new to the forum so if this post is in the wrong thread I apologize before hand.

    I'm starting to build a map with the 2D Isometric Z as Y tilemap and I can't get my tile to match the grid, I know I have to play around with the Y valor but I can't make it work :(.

    My graphic is Grass Tile.png 44px(height) x 68px(width)

    This is how it looks
    Sin título-3.jpg

    hope someone can help me!

    Thanks
     
  2. aybarsmete1

    aybarsmete1

    Joined:
    Oct 26, 2019
    Posts:
    43
    You problably should make the x value and y value same, then go to the main sprite and change Pixels per unit to the value you declared.
     
  3. blu3drag0n

    blu3drag0n

    Joined:
    Nov 9, 2018
    Posts:
    94
    That's not correct, if you are in isometric dimensions, then you always are somewhat wide on X axis against the Y axis for your tiles if you tiles are as flat as he shows (not talking about pillars or buildings or something)

    But yes, the pixels per unity might be wrong on your imported Spritesheet. It looks like you are importing them by default at 100 pixels per unit. It should be 68 of thats what your absolute tile-width is per tile, if thats variying, then you have to find out dependent on the tiles you are using.