Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Problem with placing isometric tiles above and below each other

Discussion in '2D' started by iampersonal13, May 10, 2022.

  1. iampersonal13

    iampersonal13

    Joined:
    Jun 7, 2021
    Posts:
    7
    In unity when using the in built tale palette to place tiles into the scene, I have come across a small problem. Im using an isometric tile-map and whenever i go to place a block, I end up placing a tile right above another tile. So if i was to for example place a tile at z=0, if i wanted to place a block above that I would have to have my mouse hover over the bottom of that tile but instead my mouse detects the top region of the previous tile which places the new tile farther and not just above. Only way I know to place that block is, go to and empty space outside and from a specific point you hover ur mouse under the block then increase the z with subtract. This is horrible for building a proper map. Is there a way to restrict it so that i can only click on the bottom of the tile? (i'm attaching screenshots if it didn’t make sense)

    1.jpg

    1.Can place tile above old tile when hovering over the bottom of the first tile

    2.jpg
    2.But when hovering exactly over the first tile, it places new tile at a different level
     
  2. Moosety

    Moosety

    Joined:
    Mar 29, 2022
    Posts:
    24
    this is still confusing maybe a video would work?
     
  3. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    1,068
    Just to clarify, you would prefer to have the cursor at the exact position of where you are placing the Tile with your set Z position rather than the base Z position of 0?
     
  4. iampersonal13

    iampersonal13

    Joined:
    Jun 7, 2021
    Posts:
    7
    I think I might do a video cause my problem might be something basic I am not understanding
     
  5. iampersonal13

    iampersonal13

    Joined:
    Jun 7, 2021
    Posts:
    7
    I would like for my mouse to only hover over the bottom of the tile. I am going to post a video and try showing what I mean
     
  6. iampersonal13

    iampersonal13

    Joined:
    Jun 7, 2021
    Posts:
    7
    As you can see I for example wanted to place a tile above an old tile but since its hovering overing the top of the tile, it places the tile in a weird spot

    Edit:

    Heres more of what I mean
    I want to place a tile above the one I am hovering on at z=2
     
    Last edited: May 13, 2022
  7. Moosety

    Moosety

    Joined:
    Mar 29, 2022
    Posts:
    24
    can you like just edit the position (transform) in the inspector?
     
  8. iampersonal13

    iampersonal13

    Joined:
    Jun 7, 2021
    Posts:
    7
    You mean any tile specifically? Pretty sure you cant, they aren’t game objects.
     
  9. Moosety

    Moosety

    Joined:
    Mar 29, 2022
    Posts:
    24
    Can You Make Them Game Objects?
     
  10. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    1,068
    Thanks for the videos! We will see what can be done about this!
     
    iampersonal13 likes this.
  11. iampersonal13

    iampersonal13

    Joined:
    Jun 7, 2021
    Posts:
    7
    Yeah but that defeats the whole purpose of using tilemaps. Making every tile an individual game object is not the way to go to create an entire level, objects are probably useful in cases where you have moving tiles which you want to lerp/tween them.
     
  12. iampersonal13

    iampersonal13

    Joined:
    Jun 7, 2021
    Posts:
    7
    Thanks, looking forward to any kind of solutions!