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

Switch out tilemaps by script?

Discussion in '2D' started by princeofpersiagg, Jul 6, 2022.

  1. princeofpersiagg


    Jun 19, 2022
    Hello! I have 2 Tilesets I am using for my projects. These tilesets are identical in shape and position for each tile and only have coloring differences which I need to do manually. Within my script, I need the map/level to switch out all the tiles (based on the player's position) placed on the grid from one tileset to another. Is there anyway to do this without having to redraw two maps? I don't see any options in the Tilemap Renderer and I've just been using the tile palette to draw on my grid.
  2. Lo-renzo


    Apr 8, 2018