1
Support / Weird issues when tk2dTilmap script is inside prefab
« on: March 11, 2015, 05:18:06 pm »
Hey guys,
I'm working on a top down/zelda video game using TK2D to design grounds and walls. Each room on this game is designed using a TK2D Tilemap script. Then I convert rooms into prefabs and I group them into the same scene to test the final dungeon.
I've got weird disturbing issues when I stored a tk2dTileMap script into a prefab object. The tilemap render data related to script is often (not always) duplicated and the tilemap informations are not saved properly even when I apply the settings of the prefab.
To prevent this, I've made two hacks :
- I destroy the renders data game object with same name at start of Awake method (consequences: the tilemap game object name must be unique)
- I save the prefab automatically when the tilemap is rebuilt in edit mode
I search a better way to fix this. Any ideas ?
I'm working on a top down/zelda video game using TK2D to design grounds and walls. Each room on this game is designed using a TK2D Tilemap script. Then I convert rooms into prefabs and I group them into the same scene to test the final dungeon.
I've got weird disturbing issues when I stored a tk2dTileMap script into a prefab object. The tilemap render data related to script is often (not always) duplicated and the tilemap informations are not saved properly even when I apply the settings of the prefab.
To prevent this, I've made two hacks :
- I destroy the renders data game object with same name at start of Awake method (consequences: the tilemap game object name must be unique)
- I save the prefab automatically when the tilemap is rebuilt in edit mode
I search a better way to fix this. Any ideas ?