I know why Unity gives this error with Mesh.SetTriangles(), i just can't try..catch it.
try { mesh.SetVertices(vertices); mesh.SetUVs(uvChannel, uv); mesh.SetTriangles(tri, subMesh); // <- Error here mesh.RecalculateBounds(); mesh.RecalculateNormals(); } catch { return false; // THIS never triggers }
#Failed setting triangles
1 messages · Page 1 of 1 (latest)
do you understand what the error is saying
It starts giving those errors when i put more skewed parameters to my mesh, they are fine in more valid range of scaling.
that doesn't answer my question
well, it does say out of bounds vertices something?
Yeah, do you know what that actually means
im not trying to shame just narrow down what specifically you need help with
I'm not trying to fix my mesh, only trying to catch that error
So how can i do that?
based on this link you might not be able to https://discussions.unity.com/t/how-to-properly-catch-unity-assertion-failures/197089
you'd have to re-create the validation
It's 3rd party long library almost for triangulating polygons, it's doing things i don't even understand anyway xD
Jigsaw puzzles when put to extreme may start making holes inside, i have almost no way to detect such a thing
detecting holes is one thing, detecting what that error is telling you about is another