- Home /
Failed to clean mesh????
I don't know what happened. Out of nowhere it gives me an error saying "Failed to clean mesh". I never told it to clean a mesh.
cleaning the mesh failed UnityEngine.Transform:set_localScale(Vector3) UnityEngine.Transform:set_localScale(Vector3) UnityEditor.TransformInspector:OnInspectorGUI() UnityEditor.InspectorWindow:OnGUI() System.Reflection.MonoMethod:InternalInvoke(Object, Object[]) System.Reflection.MonoMethod:InternalInvoke(Object, Object[]) System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) System.Reflection.MethodBase:Invoke(Object, Object[]) UnityEditor.HostView:Invoke(String) UnityEditor.DockArea:OnGUI()
[\unitystuff\proj\external_sources\physx\novodex\SDKs\Cooking\Src\TriangleMeshBuilder.cpp line 363]
I don't know what file it's talking about because I did not make the file that caused this. Does anybody know what I did wrong?
Answer by jonas-echterhoff · Dec 21, 2010 at 04:28 PM
From the stack trace, it looks like PhysX failed creating collision data for a MeshCollider, when the scale of a transform was changed in the inspector.
This means that you probably entered a strange value (either negative, or very very small (or zero), or very very large) for one of the scale coordinates in the Transform inspector of a gameObject which has a MeshCollider. Then, PhysX tried to recalculate the collision data for that MeshCollider, but failed to do so, during numerical problems resulting from low or high values, or because the mesh does no longer make sense when scaled to zero or negative.
What's physX? Also, I didn't change anything. It didn't give me the error before and now it is while I changed nothing.
PhysX is the physics engine used by Unity, developed by NVidia. The error message does look like you changed a scale somewhere, so I advise you to check all the scales in your scene to make sure.
Your answer
Follow this Question
Related Questions
How to solve a Unity fatal error? 1 Answer
Save procedural mesh in the editor as asset. 2 Answers
Mesh colliders with PhysX 2.8. 3 Answers
Unity isn't reading the mesh I created 1 Answer
Mesh not working 1 Answer