2D Toolkit Forum
2D Toolkit => Support => Topic started by: esdot on August 20, 2014, 05:02:36 am
-
I've scoured the docs, but I can't see a good explanation of the role of TileMapData and TileMapEditorData.
Do these need to be unique for each map we edit?
We've started creating multiple scenes that share the same objects, and are seeing strange behavior, like one scene will suddenly populate with the tilemap from another scene. But then fix itself, when re-opened.
Is this a bug? Or should we be creating unique TileMapData and TileMapEditorData for each tilemap in each scene?
-
Yes, they should be unique.
-
So we can't even share the TileMapEditorData across multiple scenes? Even if they share the exact same tileMap and settings?
-
TileMapEditorData stores brush settings, the state the tilemap was in, paint modes, etc.
TileMapData contains the prefabs, layers, etc.
You can share them if the tilemaps in your scene use EXACTLY the same data. Dont do it otherwise.
-
Hi, sorry to bring up an old thread, but is this still true? I was looking for ways to re-use the same "data" (Sprite Collections, Data (Prefabs, etc), Layers, etc). Must we really set that up every single time we create a TileMap? Even if the TileMaps are in the very same scene? (e.g. I'm using 2 separate maps for outdoor/indoor to avoid a Scene transition)
-
You can share them if the tilemaps in your scene use EXACTLY the same data. Dont do it otherwise.
So 1 for the indoor and one for the outdoor will work.