1
Support / Re: Weird issues when tk2dTilmap script is inside prefab
« on: March 12, 2015, 02:39:50 pm »
Nope, I'm not putting the render data in the prefabs containing the TK2D tilemap script. I've tried and there are anothers weird issues indeed. I consider the render data as an external generated part of the tilemap and for me it doesn't need to be saved into a prefab object, it must be reload or regenerated each time the tilemap is modified.
I've got despite everything duplicated render data. It seems that the overridden properties of the prefab are not saved properly. The prefab instance is reset to its original state (from project ressources) instead when the scene start running. The renderData property in the TK2D tilemap script is null and does not match with the already existing render data gameobject available on my scene. That's why today I commit the prefab after any rebuilt and I regenerate the tilemap render data.
I've got despite everything duplicated render data. It seems that the overridden properties of the prefab are not saved properly. The prefab instance is reset to its original state (from project ressources) instead when the scene start running. The renderData property in the TK2D tilemap script is null and does not match with the already existing render data gameobject available on my scene. That's why today I commit the prefab after any rebuilt and I regenerate the tilemap render data.