Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by KrisSchnee · Feb 21, 2018 at 10:47 AM · tilemap

Tilemap Collider Broken On Build

I created a Tilemap with a tilemap collider. I have a player character that has a BoxCollider2D and a RigidBody2d which is Dynamic. The hero moves using the rigidbody2d as "rb" and some Vector2 "v": rb.MovePosition(v).

In the editor this system works fine: the character moves and bangs into the wall tiles. But when I build the game, the wall colliders have no effect. The hero moves through walls. What's the problem here? Why is the behavior different between the editor and the build? This is with Unity 2017.2.0f3, WebGL build.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
8
Best Answer

Answer by KrisSchnee · Feb 24, 2018 at 05:30 PM

I did some digging. For anyone finding this later: apparently you need to select the textures you're using for your tiles, and in the Inspector, in the "Advanced" section, mark them as "read/write enabled". It worked for me.

There is no proper documentation for this bit of voodoo, and it makes no sense that Unity's editor doesn't work the same way as the build, because that defeats the purpose of having an editor. Notice by the way that in the video series about a platformer using tilemaps, they're using some weird custom movement code that doesn't handle colliders normally. This problem is an unfixed Unity bug.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image LU1J1X · Aug 19, 2018 at 05:36 PM 0
Share

Thank you, I was going crazy. Weirdly enough part of my colliders actually worked before, even though they had read(write disabled, but enabling it on the others fixed it.

avatar image ljh30321 · Oct 28, 2019 at 01:26 PM 0
Share

It works like a charm!

avatar image Whatevers2011 · Dec 23, 2020 at 09:54 PM 0
Share

Been trying to fix this for months and finally stumbled upon your answer - worked like a charm! They need to fix this!

avatar image Alpha_Q_ · Feb 21, 2021 at 08:26 PM 0
Share

Almost 3 years later and this is still the fix for it. Thanks for this!

avatar image arimweber · Jun 24, 2021 at 03:51 AM 0
Share

Thank you so much! in 2021.1.4, and after days of searching, you have saved my game! Thank you so much, and they REALLY need to patch this!!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

80 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can isometric tiles be rotated? 0 Answers

How to store tile's rotation? 1 Answer

My 2D tiles have holes in them 0 Answers

Why is my tile palette do messy?,Why is my tile palette all messy? 0 Answers

OnTriggerEnter2D not detecting tilemap colliders 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges