Search Unity

Ghost tiles spawned when painting on a tilemap in prefab mode

Discussion in 'Prefabs' started by arkogelul, Jan 16, 2019.

  1. arkogelul

    arkogelul

    Joined:
    Nov 14, 2016
    Posts:
    51
    Hi everyone,

    When painting in prefab mode on a tilemap, the brush tool spawns ghost tiles right after painting.
    If I click and move my cursor immediately after releasing the click, ghost tiles are spawned over the course of the cursor.

    Those ghost tiles disappear when I hover over them with the brush tool and only the brush tool.
    If I hover over those with the eraser (or any other tool than the brush), it won't do anything.
    And obviously, I can't erase them as they don't exist.
     
  2. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    161
    Hi, are you using the Default Brush from the Tile Palette and getting this issue, or other brushes?

    If you could share more details or your reproduction project with the Unity Bug Reporter, that would be helpful, thanks!
     
  3. arkogelul

    arkogelul

    Joined:
    Nov 14, 2016
    Posts:
    51
    Here's the bug report :
    1117888
     
    Last edited: Jan 17, 2019
  4. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    3,695
    Note that posting the link to fogbugz allows everyone to see all of your bug reports.

    I generally don't care that people can, but the mods tend to assume that you messed up when you post the link, so ymmw. You can just post the ID of the bug report (1117888 in your case), and Unity staff will be able to find it.
     
  5. arkogelul

    arkogelul

    Joined:
    Nov 14, 2016
    Posts:
    51
    Ah ok. Thanks, I didn't know that.
     
  6. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    161
    Thanks, will check this out!
     
  7. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    161
    @arkogelul Sorry to bother you, would you mind adding a video clip of the issue to the bug report, or possibly clarify which views you see the ghost tiles (prefab mode, Game View, Scene View etc)? Thanks!
     
  8. arkogelul

    arkogelul

    Joined:
    Nov 14, 2016
    Posts:
    51
    Sure thing, I hope it helps.
    If you need anything else, don't hesitate to ask.
    (Don't forget to activate the subtitles, I'm commenting along the video)

     
    Last edited: Jan 18, 2019
  9. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    161
    Thanks! Got how to reproduce it.
     
  10. arkogelul

    arkogelul

    Joined:
    Nov 14, 2016
    Posts:
    51
    Hi, just wanted to know if there were any news on this tile issue.
    Thanks.
     
  11. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    161
    Hi, sorry for the lack of updates!

    This will be fixed in 2018.3.8f1.
     
  12. arkogelul

    arkogelul

    Joined:
    Nov 14, 2016
    Posts:
    51
    Thanks :)
     
  13. arkogelul

    arkogelul

    Joined:
    Nov 14, 2016
    Posts:
    51
    I don't know if it's related, but I also have some major graphic bugs on the game view when I edit a tilemap in prefab mode.
    It can display tiles that are not even related to the one I'm painting.
    I reckon it might be related to the bug you fixed, but I wanted to give you the info in case it's not.
    Thanks again !
     
  14. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    161
    Thanks, I will check this out!
     
  15. arkogelul

    arkogelul

    Joined:
    Nov 14, 2016
    Posts:
    51
    I would like to say that I love the fact that us users are able to talk to you guys and have such fast feedback (not only for that particular case).
    I know it's what forums are for, but I really do appreciate it.
    I don't see that comment a lot, and I assume that's obvious to think but I wanted to say it :)
     
  16. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    161
    Hi, sorry to bother you, could I trouble you for a screen capture of the graphics bugs that you see in the GameView, as well as the reproduction steps? Thank you!
     
  17. arkogelul

    arkogelul

    Joined:
    Nov 14, 2016
    Posts:
    51
    Here's a video with some bugs I could reproduce.
     
  18. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    161
    Wow, what an interesting issue!

    The pink Tiles you see in the Tilemap in the GameView (Prefab instance in Scene) are special Tiles which show that the original Tile Asset is now invalid. The reason why the Green Tile Asset became invalid is because the Prefab and the Prefab instance have become de-synced. The Prefab instance stores only overrides (or changes from the Prefab) and does not have the full working dataset compared to the Prefab. This means that if the Prefab does not have the Green Tile Asset, the Prefab Instance will not have it as well as that is not captured as part of the overrides.

    Similarly, when both Tiles at a particular position on the Prefab and the Prefab instance have changed, it becomes unclear for the Prefab instance to reconcile the differences.

    I will also look into the error you get in the console too!