Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Tile Map Strange behaviour painting prefabs

Discussion in '2D Experimental Preview' started by SuperNoctiz, Oct 23, 2016.

  1. SuperNoctiz

    SuperNoctiz

    Joined:
    Jan 24, 2014
    Posts:
    20
    Hello,

    I'm trying to use the tile map to paint some prefabs, like coins or a portal in this case, but it's happening something weird.
    So, I created a tile asset, added a sprite to it and then added the prefab I wanted.
    And when I try to paint it in the grid, the prefab is instantiated out of place from where it should be:


    Why is this happening? Is it a bug or am I doing something wrong?

    Thank you.
     
  2. lothlorientos

    lothlorientos

    Joined:
    May 20, 2014
    Posts:
    32
    Same problem with me. I resolved it by removing sprite from the prefab and having the tile sprite. The other thing is that I tried to add a tile collider in the prefab but didn't seem to work (not sure if I did something wrong though). Also when I added a box collider instead in the prefab it got missplaced again just like the sprite problem from before.