public static void ExportObj_Sub_mesh() { if (VDialog.DisplayDialog("你是否要将物件Mesh存为 OBJ 格式,并存为多个Sub-Mesh")) { if (Selection.gameObjects.Length == 0) { Debug.Log("Didn't Export Any Meshes; Nothing was Selected!"); return; } string meshName = Selection.gameObjects[0].name; makeSubmeshes = true; VFile.SaveFile(SaveOBJFile, "obj"); } }
public static void ExportObj() { if (EditorUtility.DisplayDialog("V", "你是否要将物件Mesh存为 Obj 格式,并将Mesh合并", "OK")) { if (Selection.gameObjects.Length == 0) { Debug.Log("Didn't Export Any Meshes; Nothing was Selected!"); return; } string meshName = Selection.gameObjects[0].name; makeSubmeshes = false; VFile.SaveFile(SaveOBJFile, "obj"); } }