Hello there. I'm trying to create something really simple here. A quad. For that I have a reference to a Mesh.
The following code I use to set the data works perfectly fine in Unity 5.5.1 (it generates a quad with 3 triangles) but somehow does not in 5.5.3. Not sure what I'm doing wrong there so any help would be greatly appreaciated.
// assign empty mesh to mesh filter
_meshFilter.sharedMesh = _mesh = new Mesh();
// do stuff to generate vertices, UVs and triangles
// Then assign
Here's the observed effect in 5.5.3 as gif: http://pasteboard.co/757f9W2zv.gif Can't attach gifs so there's a link. Sorry.
I can assure you that the vertices, triangles and UV coords are correct. I have double checked them with both versions. But something is off. I can say that the mesh exists. When I inspect the Mesh Filter it has the generated mesh on it. But it's not visible in 5.5.3. I suspect the UVs being wrong but I'm fairly sure they are correct and not out of the ordinary:
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
69 People are following this question.
3D array problem
Procedurally Generated Mesh Texture problem
How can I remove joining lines for procedurally generated 3D game objects?
Creating a convex MESH (not collider)
Procedurally Generated Mesh Texturing