Removed interactive mode from asset importer to allow for multiple assets to get imported

This commit is contained in:
Albin Corén 2018-04-19 19:44:55 +02:00
parent 3f29b7d8ef
commit 4e16d9c913

View File

@ -113,7 +113,7 @@ public class MLAPIEditor : EditorWindow
File.WriteAllBytes(Application.dataPath + "/MLAPI/Lib/" + releases[index].assets[i].name, www.bytes);
if (releases[index].assets[i].name.EndsWith(".unitypackage"))
AssetDatabase.ImportPackage(Application.dataPath + "/MLAPI/Lib/" + releases[index].assets[i].name, true);
AssetDatabase.ImportPackage(Application.dataPath + "/MLAPI/Lib/" + releases[index].assets[i].name, false);
}
EditorPrefs.SetString("MLAPI_version", releases[index].tag_name);