2D Toolkit Forum
2D Toolkit => Releases => Topic started by: unikronsoftware on April 29, 2012, 01:25:45 am
-
BUGFIX: Tile map editor wasn't updating the mesh correctly, resulting in invisible tilemaps.
-
Thanks for the update! This release fixed the bug I was seeing when committing TileMap changes on my Mac.
Another question: are there any best practices for setting up a tk2dCamera to work with a TileMap? I've tried a few different setups, and can't seem to eliminate occasional "tearing" between tiles when the camera pans.
EDIT: Added image
-
Can you check what your sprite pad method is in the Sprite Collection? It should be "Extend" for tiles like this.
-
Perfect. Thanks!
-
FYI there is a bug when you try to build the project: Error on line 387 of tk2dTileMap.cs , missing the () after 'new Mesh'
-
Also, I'm getting crazy issues with tilemap parts disappearing when I commit, and tiles (or maybe it is the paint "brush" itself) are off a few pixels. I've updated to this latest version.
EDIT: Restarted Unity and the alignment thing is gone, but I still have tiles disappear when I commit sometimes (almost every other commit). If I commit again, the tiles will show up again. Very strange.
-
I get the same thing on my Mac (haven't tried it on PC yet). Sometimes, I'll commit and everything disappears. If I edit and commit again, it comes back.
-
Should note that I am also on a Mac, running 3.5.1f2
-
I'm investigating this. Worst case, I will revert the change that caused this in the first place - its the "Serialize mesh" feature. Its much much more complicated than it sounds.
-
What does the serialize mesh feature do? Is that for performance?
-
It was a request to be able to save the mesh generated by the tilemap as a prefab, and then instance that in other scenes - basically lets you use the tilemap generator as a mesh editor.
Edit: I'll give it a few more hours, and if I can't fix it by then, I'll simply revert to a known working version.
Edit: I'm sure this is some stupid typo somewhere.
Edit: Yes, it was a typo. I'll upload a patch just to make sure it works for everyone before the next release.
-
I have attached a patch to the main thread article - that should fix this issue. Please let me know how it goes.
-
Seems to be working well so far, thanks.
-
I was able to build on iOS again with latest patch. Thanks.
- Steven
-
Works for me as well. Thanks for the update!