- Home /
Collision Issue (Unity bug?)
Hello,
I generated a mesh via script, after regenerateing that mesh, and update with the new vertices, triangles and uvs, the mesh's collider (use shared mesh with the meshfilter's mesh) the meshcollider go mad for some reason: somethimes it stops working, sometimes its not where the mesh is and sometimes it doesn't updates itself(The different issues comes from trying to regenerate the mesh with different ways). Why?
Comment
Solved, only way to do this is:
object.GetComponent.<$$anonymous$$eshCollider>().shared$$anonymous$$esh = null; object.GetComponent.<$$anonymous$$eshCollider>().shared$$anonymous$$esh = object.GetComponent.<$$anonymous$$eshFilter>().mesh;