public static Mesh LoadMesh(string fullPath, string meshName) { var mesh = new Mesh(); using (var fileStream = File.Open(fullPath, FileMode.Open)) { mesh.LoadOBJ(OBJLoader.LoadOBJ(fileStream)); } mesh.Optimize(); mesh.name = meshName; if (!mesh.name.Contains("LOD")) { mesh.UploadMeshData(true); } return mesh; }