Hello Guest

Author Topic: Deleting a layer in a tilemap causes prefabs to lose their instance data.  (Read 4257 times)

Lortimus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 20
    • View Profile
Deleting a layer from a tilemap, using the red X icon under Tilemap > Settings > Layers, causes all prefabs (in other layers) to lose their saved instance data.  Is this a known issue?  Is there a way to work around this?

Lortimus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 20
    • View Profile
Bump.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Hi just got around to testing this, and it looks like a bug that only happens when you delete a layer underneath a layer that contains prefabs. So if you have
A
B (contains prefabs)
C

and you delete A, you're fine. If you delete C, the prefabs on B lose their contents. You can work around this by moving C up so its at the top of the tilemap stack and delete it. I'll fix it properly in the next version

Lortimus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Deleting a layer in a tilemap causes prefabs to lose their instance data.
« Reply #3 on: November 03, 2015, 05:04:16 pm »
Awesome, thanks!