- Home /
Tilemap collider only works in editormode
I'm trying to use the Tilemap Collider 2D component. The colliders work as intended in the editor, but when I export a build it simply doesn't work.
I'm using a non-trigger collider to test it. In the editor my player can't walk through the tile, but in the actual build the player walks through the tile like the collider didn't exist.
Does any one know what to do to make the component work in the build?
Answer by KrisSchnee · Feb 20, 2018 at 10:46 PM
I'm having the same problem, and MarcusBoay's answer didn't change anything. I'm using v2017.2.0f3.
Answer by MarcusBoay · Dec 13, 2017 at 04:52 AM
I may have found a solution to the problem.
What I had for the Import Settings for the Images is: Wrap Mode - Repeat, Filter Mode - Bilinear.
Once I changed it to: Wrap Mode - Clamp, Filter Mode - Point (no filter),
the colliders worked as intended.
I'm not too sure why this is though. An explanation to this would be nice.
Answer by juliosepia · Jan 27, 2019 at 01:08 AM
I ran into the same issue. The solution is to make sure the texture is read/write enabled.
Your answer
Follow this Question
Related Questions
Player Gets Stuck On TilemapCollider2D 0 Answers
How to make one-way platforms using a tilemap? 2 Answers
tilemap collider2D is it possible to "walk" inside composite collider (pictures to explain) 2018.1 0 Answers
Changing tile collider shape 1 Answer
I want to get the width of a part of a TilemapCollider2D. Explained with image inside. Help! 0 Answers