Sorry I don't follow, can you explain that in a bit more detail? Maybe some pics will help
sorry, i describe the again。
i want to export data which store tile info, such as layer, spriteId, x, y etc. so i test tilemapdata and tilemapeditordata, i found no information I want.
i only found the information associated with the editor, no tile gameobject in scene info
i test again by tilemap, look at code:
if (GUILayout.Button("ExportTileMapEditorData"))
{
int iLenLayer = this.tileMap.Layers.Length;
for(int i = 0; i < iLenLayer; i++)
{
tk2dRuntime.TileMap.Layer layer = this.tileMap.Layers
;
int iLenSpriteChunk = layer.spriteChannel.chunks.Length;
for(int j = 0; j < iLenSpriteChunk; j++)
{
tk2dRuntime.TileMap.SpriteChunk spriteChunk = layer.spriteChannel.chunks[j];
int iLenSpriteId = spriteChunk.spriteIds.Length;
for(int k = 0; k < iLenSpriteId; k++)
{
int spriteId = spriteChunk.spriteIds[k];
Debug.Log(i + "," + j + "," + k + "," + spriteId);
}
}
}
}
i think i export new data by above code, but i need to convert tile position to ensure correct by use GetTileIdAtPosition etc
if you have a better way, help me, this torture me for a long time, hah