Hello Guest

Author Topic: Does each map require unique TileMapData and TileMapEditorData?  (Read 5689 times)

esdot

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 30
    • View Profile
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?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Does each map require unique TileMapData and TileMapEditorData?
« Reply #1 on: August 20, 2014, 11:50:46 am »
Yes, they should be unique.

esdot

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Does each map require unique TileMapData and TileMapEditorData?
« Reply #2 on: August 20, 2014, 05:21:59 pm »
So we can't even share the TileMapEditorData across multiple scenes? Even if they share the exact same tileMap and settings?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Does each map require unique TileMapData and TileMapEditorData?
« Reply #3 on: August 21, 2014, 06:04:44 pm »
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.

adamnash_fm

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Does each map require unique TileMapData and TileMapEditorData?
« Reply #4 on: November 21, 2014, 08:50:30 pm »
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)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Does each map require unique TileMapData and TileMapEditorData?
« Reply #5 on: November 22, 2014, 11:05:04 am »
Quote
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.