Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

not enough tiles are drawn at the border for hexagonal tilemaps

Discussion in '2D Experimental Preview' started by FrankBuss, Oct 3, 2016.

  1. FrankBuss

    FrankBuss

    Joined:
    Dec 22, 2014
    Posts:
    41
    When I use hexagonal tilemaps, sometimes at the borders the background is visible. This bug is worse when I rotate the tilemap by 90°. See this video for a demonstration of the bug (my script moves the camera position on mouse drag and changes the orthographic size on mouse wheel) :

     
  2. danbrani

    danbrani

    Joined:
    Nov 22, 2012
    Posts:
    45
    I actually have a similar issue with the square grid, the chunk on the right side of the camera disappears while it is still visible. It cuts off a column that's around half the tile size (8px) in my case. I'm not sure what it's caused by, I'm using 2d toolkit in my project. The demos work fine.
     
  3. FrankBuss

    FrankBuss

    Joined:
    Dec 22, 2014
    Posts:
    41
    BTW, the size of my tiles are 32 x 32 pixels.
     
  4. Xelnath

    Xelnath

    Joined:
    Jan 31, 2015
    Posts:
    259
    Might need custom bounds?
     
  5. FrankBuss

    FrankBuss

    Joined:
    Dec 22, 2014
    Posts:
    41
    Where can I set the bounds? But would be good if Unity could figure it out itself.