As the title indicates, I am unable to apply properly a texture to an procedurally generated object.
The image bellow shows the objects A, B and C.
A is a .OBJ file. It was imported to Unity the ‘regular’ way, by dragging and dropping it from the desktop, to Unity. This object was created from object B. I used a script that exports a mesh to a location (I exported object B to the desktop, essensially, making a copy of it in a different format)
B is an object that I created from reading an .DXF file. It is a 2D spline. I created a parser to extract the coordinates and manually calculated all triangles and stuff to create the mesh.
C is another .OBJ file, but imported dinamically during runtime.
All 3 objects share the same material, so why is B different?