diff --git a/asset-bundle-converter/Assets/AssetBundleConverter/LODsConverter/Scripts/LODConversion.cs b/asset-bundle-converter/Assets/AssetBundleConverter/LODsConverter/Scripts/LODConversion.cs index 7d96e5dd..10d05c63 100644 --- a/asset-bundle-converter/Assets/AssetBundleConverter/LODsConverter/Scripts/LODConversion.cs +++ b/asset-bundle-converter/Assets/AssetBundleConverter/LODsConverter/Scripts/LODConversion.cs @@ -58,6 +58,7 @@ public async void ConvertLODs() { Directory.Delete(lodPathHandler.tempPath, true); Utils.Exit(1); + return; } Directory.Delete(lodPathHandler.tempPath, true); diff --git a/asset-bundle-converter/Assets/AssetBundleConverter/LODsConverter/Utils/LODPathHandler.cs b/asset-bundle-converter/Assets/AssetBundleConverter/LODsConverter/Utils/LODPathHandler.cs index 70ee0937..e9bd3e14 100644 --- a/asset-bundle-converter/Assets/AssetBundleConverter/LODsConverter/Utils/LODPathHandler.cs +++ b/asset-bundle-converter/Assets/AssetBundleConverter/LODsConverter/Utils/LODPathHandler.cs @@ -73,7 +73,7 @@ private void UpdatePaths(string newFilePath) Directory.CreateDirectory(materialsPath); materialsPathRelativeToDataPath = PathUtils.GetRelativePathTo(Application.dataPath, materialsPath); - prefabPathRelativeToDataPath = PathUtils.GetRelativePathTo(Application.dataPath, fileDirectory + "/" + fileNameWithoutExtension + ".prefab"); + prefabPathRelativeToDataPath = PathUtils.GetRelativePathTo(Application.dataPath, fileDirectory + "/" + fileNameWithoutExtension + " (gameobject).prefab"); // Save assets and refresh the AssetDatabase AssetDatabase.SaveAssets(); AssetDatabase.Refresh();