1
Support / Disappearing TileMaps when Committed
« on: April 16, 2014, 06:42:23 am »
Hi,
I am building a game where I generate a world by instantiating tilemap prefabs from a pool. To create those prefabs, I first create the tilemaps in the hierarchy then drag/drop them into a prefab. If the tilemap in the hierarchy was not committed, the prefabs work fine and I can see the tilemaps when I run the game. If the tilemap in the hierarchy was committed, the prefab appears as an empty tilemap??
I saw this post, but I assume it is a different case from mine... believe I should keep the "prefab" entry under the "Data" tab of the editor set to "none" in my case.
http://2dtoolkit.com/forum/index.php/topic,1900.msg9364.html#msg9364
I also found this posting on your forum:
http://2dtoolkit.com/forum/index.php/topic,1524.msg7361.html#msg7361
If I am instantiating tilemap prefabs, do I still need to call the "LoadSceneAdditive" method... I'm not sure what it is used for exactly. I am not loading any tilemaps across different scenes so maybe I don't need this method??
The last paragraph of the above post also suggested trying "ForceBuild()"? Is it suggesting I keep the prefab tilemaps uncommitted and use "ForceBuild()" to commit them at runtime? Wouldn't this affect performance?
Thanks for the help,
hemdanw
I am building a game where I generate a world by instantiating tilemap prefabs from a pool. To create those prefabs, I first create the tilemaps in the hierarchy then drag/drop them into a prefab. If the tilemap in the hierarchy was not committed, the prefabs work fine and I can see the tilemaps when I run the game. If the tilemap in the hierarchy was committed, the prefab appears as an empty tilemap??
I saw this post, but I assume it is a different case from mine... believe I should keep the "prefab" entry under the "Data" tab of the editor set to "none" in my case.
http://2dtoolkit.com/forum/index.php/topic,1900.msg9364.html#msg9364
I also found this posting on your forum:
http://2dtoolkit.com/forum/index.php/topic,1524.msg7361.html#msg7361
If I am instantiating tilemap prefabs, do I still need to call the "LoadSceneAdditive" method... I'm not sure what it is used for exactly. I am not loading any tilemaps across different scenes so maybe I don't need this method??
The last paragraph of the above post also suggested trying "ForceBuild()"? Is it suggesting I keep the prefab tilemaps uncommitted and use "ForceBuild()" to commit them at runtime? Wouldn't this affect performance?
Thanks for the help,
hemdanw