Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Can i use 2 grids with a different cells size at the same time ?

Discussion in '2D' started by Librain, Dec 14, 2018.

  1. Librain

    Librain

    Joined:
    Sep 10, 2018
    Posts:
    7
    I have sprite for my background that i want to draw in scene with cell size 1x1 and sprites for environment that i want to draw in 0.01x0.01 cell size(for best control in space).
    Problem is when i try to draw my background in 0.01x0.01 cell size it looks like (pic 1) but i want it to look like (pic 2)
    P.S. maybe there is more efficient way to draw background ?
     

    Attached Files:

  2. ngmane

    ngmane

    Joined:
    Apr 25, 2018
    Posts:
    9
    You can have your background in another Grid with cell size same as that of the second pic.
    So you will have 2 Grids.
    1) Background Grid with size same as that of second pic.
    2) Foreground or whatever in the 0.01 x 0.01 cell size Grid.

    Note: You have to make sure the PPU is set properly to match the cell size.
     
    Last edited: Dec 15, 2018
  3. Librain

    Librain

    Joined:
    Sep 10, 2018
    Posts:
    7
    Thanks for your reply, i just didn't notice tab "active tilemap" and that's was my problem ...
     
    Last edited: Dec 16, 2018