2D Toolkit Forum
2D Toolkit => Support => Topic started by: fsadeq on March 08, 2014, 03:43:18 am
-
Hi, I'm trying to switch from 2D to 3D physics and when I go into my tilemap's sprite collection and change it from 3D to 2D, then commit, it doesn't change any of my colliders. They are all still Mesh Colliders instead of Edge Colliders. I tested the swapping in the demo scene and it properly switches to Edge Colliders. Any idea why this wouldn't be working in my own project? I am using a Sprite Sheet if that matters. Thanks.
-
Are you getting any warnings / errors in the console? You need to make sure that everything is converted properly and hasn't broken out early for some reason or other. Creating a sprite form this collection should create 2d colliders.
-
No console warnings or errors. What else needs to be converted other than the sprite collection?
Also, when I create a sprite manually in the scene from the same collection, it properly creates a Box Collider 2D as expected. It's only the tilemap that is still creating MeshColliders instead of Edge Collider.
-
No idea why, but I rebuilt the indexes and it works now. Oh, well.
-
That makes no sense at all, the tile map doesn't use the index for any relevant data. Oh well :(
-
I did also restart Unity - who knows.