1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-21 01:36:05 +08:00

Fix for correct deletion and reimport of DemilLib old/new Core libraries

This commit is contained in:
Demigiant 2015-12-06 16:26:46 +01:00
parent c1f7a0629a
commit 12d7b6d707
43 changed files with 10 additions and 2 deletions

View File

@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: c3ed210e88bf58b45994d711d3fcdc13
guid: cb030758e21bec84cb679b2fe522fb5c
folderAsset: yes
timeCreated: 1448276279
timeCreated: 1449415582
licenseType: Free
DefaultImporter:
userData:

View File

@ -113,6 +113,8 @@ namespace DG.DOTweenEditor.Core
// Delete Editor folder if empty
if (AssetExists(adbDemiLibDir + "/Editor") && Directory.GetFiles(demiLibDir + slash + "Editor").Length == 0)
AssetDatabase.DeleteAsset(adbDemiLibDir + "/Editor");
// Reimport correct Core libraries
AssetDatabase.ImportAsset(demiLibNewCoreDir, ImportAssetOptions.ImportRecursive);
}
static void DeleteAssetsIfExist(string[] adbFilePaths)
{
@ -120,6 +122,12 @@ namespace DG.DOTweenEditor.Core
if (AssetExists(f)) AssetDatabase.DeleteAsset(f);
}
}
// static void ReimportAssets(string[] adbFilePaths)
// {
// foreach (string f in adbFilePaths) {
// if (AssetExists(f)) AssetDatabase.ImportAsset(f, ImportAssetOptions.ForceUpdate);
// }
// }
/// <summary>
/// Returns TRUE if the file/directory at the given path exists.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.