1
Support / Detach Prefab From Tiles at Runtime
« on: November 11, 2014, 10:56:46 pm »
Hi.
first of all I must say, 2dtoolkit tile map is simply awsome and it is a delight to use it. One question:
Every time I update the map and use SetTile() all tiles that have prefabs attached to them are instantiated again and Start() is called again on their script.
Is there a way to somehow "detach" all prefabs at runtime after I don't need them anymore? I use SetTile() quite often and I just couldn't figure this one out.
Thank you for your help in advance!
Marton
first of all I must say, 2dtoolkit tile map is simply awsome and it is a delight to use it. One question:
Every time I update the map and use SetTile() all tiles that have prefabs attached to them are instantiated again and Start() is called again on their script.
Is there a way to somehow "detach" all prefabs at runtime after I don't need them anymore? I use SetTile() quite often and I just couldn't figure this one out.
Thank you for your help in advance!
Marton