Search Unity

Tile Map Select and drag groups of tiles in a scene

Discussion in '2D Experimental Preview' started by Ultronator, Dec 19, 2016.

  1. Ultronator

    Ultronator

    Joined:
    May 24, 2015
    Posts:
    3
    Is there a way to move tiles within the Tilemap object once they are placed? Let's say I want to move a large group of tiles that I meticulously placed on a Tilemap, over just one square to the right, because I want a gap I'm expecting the player to jump over to be a little larger. Here's the best I can come up with:

    1. Select the Picker tool
    2. Select a group of tiles on the Tilemap
    3. Paint them off to the side somewhere (to preserve them)
    4. Erase the original tiles, making a mental note of exactly where they were located
    5. Select the Picker tool again
    6. Select the "preserved" tiles
    7. Paint them one square over from where the original (now erased) tiles were

    I've been prototyping a 2d tile based game in Unity for a while now and I am currently placing tiles individually (without a Tilemap) and using the snap feature (V) to align them. With this approach, I can easily select large groups of tiles and move them over. This works ok, but I'd much rather be using something that was clearly designed for this purpose. If Tilemap doesn't have a way to move groups of tiles like this then I'm hesitant to use it.

    By the way, even if there is no way to do this, I'm still very grateful to have the Composite Collider 2D, as it's a huge help to me for creating one smooth rectangular collider for multiple tiles (with box colliders) in a row.
     
  2. Johaness_Reuben

    Johaness_Reuben

    Unity Technologies

    Joined:
    Jan 27, 2016
    Posts:
    253
    What you can do instead is, with the Paint tool is selected.

    1. Control + Paint tool to select group of tiles.
    2. Shift + Left Click to erase original tiles.
    3. Paint on square over.

    Additionally if you have multiple layers selected it will copy the tiles from the different layers and paint them into the respective layers as well.
     
  3. keely

    keely

    Joined:
    Sep 9, 2010
    Posts:
    966
    move.gif
    The default tool (arrow) was previously just for selecting. We are changing it to select+move now. Here is a GIF from our current internal build.
     
    Pozonu likes this.
  4. Ultronator

    Ultronator

    Joined:
    May 24, 2015
    Posts:
    3
    I haven't checked this in a while, but thanks for the answer. It's great that you guys are continuing to tweak the 2d tools. I'm hoping to see the tilemap make its way into an upcoming release soon.
     
  5. stechmann

    stechmann

    Joined:
    Feb 24, 2012
    Posts:
    25
    I assume this thread is not about the Unity built-in tilemap system, but some third party plug-in?
     
  6. EGA

    EGA

    Joined:
    Sep 12, 2014
    Posts:
    36
    That sounds like a great feature. Has the feature been released yet?
     
    spacehelmetboy likes this.
  7. LilGames

    LilGames

    Joined:
    Mar 30, 2015
    Posts:
    183
    Doesn't look like it is ( 2018.3.8f1)
    You have to click the move tool first.
     
  8. EGA

    EGA

    Joined:
    Sep 12, 2014
    Posts:
    36
    It isn't released. What do you mean by "you have to click the move tool first"? Why do I have to click the move tool first when the feature is not released yet?
     
  9. LilGames

    LilGames

    Joined:
    Mar 30, 2015
    Posts:
    183
    YOU'RE the one who asked "Has the feature been released yet?". I answered your question by actually TRYING IT. What part of that is wrong?
     
  10. EGA

    EGA

    Joined:
    Sep 12, 2014
    Posts:
    36
    Oh. I see, sorry senpai.

    It works now, after clicking on the arrow tool, then the move tool.
     
    Last edited: Apr 19, 2019
  11. jleven22

    jleven22

    Joined:
    Mar 26, 2019
    Posts:
    71
    Not working for me, so I must be doing it wrong, but can someone describe the process step by step? I am selecting "selection tool," selecting an area, then clicking move, but when I do that it unselects the selection.
     
  12. thathurtabit

    thathurtabit

    Joined:
    Jul 29, 2018
    Posts:
    3
    So I just tried this out for the first time. In the Tile Palette window, click the [arrow] icon and click and drag over the tiles you want to move, when they're selected, click the [move] icon to click and drag them to a new location.
     
  13. LilGames

    LilGames

    Joined:
    Mar 30, 2015
    Posts:
    183
    You have to make sure you are in Edit mode.