UV unwrap on Runtime optimization
问题 I'm trying to create UVs @ runtime, I'm using a BOX type UVs (similar to BOX UVW in 3ds max) and based my calculation on the face orientation. I know it's not a good option to create it a runtime but I have no choice :( it's saved after calculation, so I made it once. BUT I take 40 seconds for a 30000 Vertices... too long Is there any optimization in my code that can be made? . Here is my code feel free to use if you have <5000 vertices Mesh: public static void CreateUV(ref Mesh mesh) { int i