2D Toolkit Forum

2D Toolkit => Support => Topic started by: Lortimus on October 10, 2015, 04:59:08 pm

Title: Deleting a layer in a tilemap causes prefabs to lose their instance data.
Post by: Lortimus on October 10, 2015, 04:59:08 pm
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?
Title: Re: Deleting a layer in a tilemap causes prefabs to lose their instance data.
Post by: Lortimus on October 16, 2015, 02:25:18 am
Bump.
Title: Re: Deleting a layer in a tilemap causes prefabs to lose their instance data.
Post by: unikronsoftware on October 18, 2015, 11:48:44 am
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
Title: Re: Deleting a layer in a tilemap causes prefabs to lose their instance data.
Post by: Lortimus on November 03, 2015, 05:04:16 pm
Awesome, thanks!