Search Issue Tracker

Fixed in 2020.1

Fixed in 2019.3

Votes

18

Found in

2017.4.30f1

2018.4.4f1

2019.1.1f1

2019.1.10f1

2019.2.0b10

2019.3.0a9

Issue ID

1159597

Regression

No

Error of MeshCollider appear when Mesh Collider component is added to the Mesh and built to platform

Physics

-

To reproduce:
1. Open attached project
2. Add a MeshCollider component to MyMesh
3. Build and run

Actual result: Error appears, the second build fails
Expected result: There should be no errors when building to platforms.

Reproduced in:2017.4.30f1; 2018.4.4f1; 2019.1.10f1; 2019.2.0b10; 2019.3.0a9

Error: This MeshCollider (GameObject: 'MyMesh' Mesh: 'pG_stair_01') requires the mesh to be marked as readable in order to be usable with the given transform.
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

Workaround: Enable read and write for the mesh

Note: First build succeeds, after that all builds fail.
Note: same for building to standalone and android.

Comments (6)

  1. 95db11a2438bbbd49d5ba8bab948927c?d=mm

    Tehelee

    Feb 24, 2020 07:30

    This is not fixed, existing mesh collider components post-upgrade are still broken.

    Resetting them or re-adding the component ( as a new object at that point ) is a manual work-around; not a fix.

  2. 13b1a74520c31b00d335c6cceaafb04f?d=mm

    Fira-Soft

    Jan 21, 2020 22:19

    So, only updating to unity 2019.3.5 (Release Candidate) wasnt enough to get my existent prefab working. I also needed to remove the current Mesh Collider from it and re adding a new one.

    For new objects, updating to Unity 2019.3 was enough.

  3. C7d5985cfab5e24ae705187d6a6cd1c1?d=mm

    futurlab_peterh

    Dec 23, 2019 13:07

    This is still happening in 2019.2.17f1 (tested on PC and Switch builds)

  4. 3a9c42fc2e5afb404ac176818b7f8221?d=mm

    Knipscher

    Dec 18, 2019 01:17

    Same here, and marking my meshes as read/write enabled brings me from 250 FPS to 15 FPS in the CPU usage profiler and wrecks performance on mobile -- it's not a reasonable workaround. It worked fine in 2019.2.16f1.

  5. 20942619bbd36ec14307d76d2b9f82af?d=mm

    Bastienre4

    Nov 07, 2019 17:26

    Also have this issue on the 2019.3.0b10. In the 2019.2.8f1 it was fine.

  6. 20d7aeb388b320bed1c3ca83c1fc4530?d=mm

    chriscode

    Sep 29, 2019 14:49

    Yes I had this, post build in 2019.2.0f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.