Removing of GameObject Clone removes SharedMesh

Hi guys,

i am using 2D Toolkit 2D ColliderGen to build a 2D game which uses tiles. I have a tiles and items and these objects are childs of an factory node (not using prefabs yet). When loading a map i clone all tiles and items and set the specified graphic clip (or animations on items). Okay, when i am loading the second map i clear all the clones with the command “destroy”. After loading the new map no item has a collider. The Mesh property in the Mesh Collider Component says “Mesh is missing” on every tile. I debugged the stuff and see that the Collider Mesh is missing after killing the first object (also via Unity itself, in the perspective view by hitting Delete-Button). I tried also to delete the Mesh Collider Component first but the effect was the same. How can i delete a GameObject without deleting the Mesh Collider Mesh Property of the other objects?

Cheers
D.

I’m not really sure about what is your problem and I have not use 3d toolkit before, but it sounds like you are cloning objects from your scene? When I want to clone objects I usually make a transform var in my script, I place the object/prefab on it (from the project inspector) and I clone them without problems when I want to destroy them.