Unity-Technologies / 2d-extras

Fun 2D Stuff that we'd like to share!
Other
1.55k stars 343 forks source link

Tilemap collisions do not work in build. #62

Open nicbiondi opened 6 years ago

nicbiondi commented 6 years ago

This issue is thankfully fairly easy to fix by flagging textures used in tilemap with read/write. Wanted to mention it here so that this could possibly be fixed for new users that don't know how to fix this behavior. There are a few threads about this including this one. https://forum.unity.com/threads/unity-2d-2017-2-0-b10-tile-collider-not-working-on-build.494916/

ChuanXin-Unity commented 5 years ago

Ideally, you would set up a Custom Physics Shape for each Sprite used in a Tile. You can do this through the Sprite Editor or enabling "Generate Physics Shape" in the Texture Importer Inspector.