I assigned a MeshCollider to a procedural mesh with these lines:
GetComponent().sharedMesh = null;
GetComponent ().sharedMesh = GetComponent ().mesh;
Somehow it causes this shader or material issue. I want to know how to fix it. Maybe the reason is in the rest of the code. If so i will share it but i wonder if anyone knows what the reason is.![alt text][1]
[1]: /storage/temp/118895-118703-coldr.png
↧