Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Coordinate grid for the world map

Discussion in 'Accessibility' started by gammute, Oct 1, 2023.

  1. gammute

    gammute

    Joined:
    Sep 12, 2022
    Posts:
    2
    Hi all.
    I need to put a grid on the map, and the size of the cells needs to be set within the game. It is also necessary that when the map is enlarged, the numbers and letters indicating the cells move behind the screen.
    What is the best way to implement this?
     

    Attached Files:

  2. gammute

    gammute

    Joined:
    Sep 12, 2022
    Posts:
    2
    ok, maybe it will be useful to someone. I made the grid through 2 loops - for each axis. I spawned a prefab in which there was an empty square PNG with black lines along the edges.
    I'll add more when I solve the issue with numbers...