Search Unity

[Solved] Dragging tiles

Discussion in '2D Experimental Preview' started by Tigersong, Aug 14, 2019.

  1. Tigersong

    Tigersong

    Joined:
    Aug 11, 2014
    Posts:
    39
    I have a small request for Unity 2D: please can we have the ability to select a group of tiles and move them around our scene? I tried the Move tool- it does nothing, as if tiles were insubstantial.
     
  2. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,352
    You can use tiles to make game objects that you'll be able to drag around at will.
     
  3. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,352
    Are you the same Tigersong I know from other places?
     
  4. Tigersong

    Tigersong

    Joined:
    Aug 11, 2014
    Posts:
    39
    How's that accomplished? And in reply to your question- yes, this one believes we first met in TESA. Hello again!
     
  5. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,352
    Ha ha! Welcome! :D
     
  6. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,352
    Create a tile and drag it in the hierarchy view and it will be a game object to which you'll be able to add scripts, colliders, rigidbody if necessary, and so on.

    If you are completely new to this, I recommend that you make this tutorial: https://learn.unity.com/project/ruby-s-2d-rpg :)
     
  7. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,352
    I'm not sure if I've understood your question well. If you ask about selecting tiles that you have already drawn on a tilemap instead of erasing them and drawing them again elsewhere, there are "select" and "move" tools in the tile palette: https://docs.unity3d.com/Manual/Tilemap-Painting.html
     
  8. Tigersong

    Tigersong

    Joined:
    Aug 11, 2014
    Posts:
    39
    Thank you very much, and now this one promises to look more closely at the editor. :p
     
    APSchmidt likes this.
  9. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,352
    Ha ha! :)