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:
parent
c1f7a0629a
commit
12d7b6d707
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c3ed210e88bf58b45994d711d3fcdc13
|
||||
guid: cb030758e21bec84cb679b2fe522fb5c
|
||||
folderAsset: yes
|
||||
timeCreated: 1448276279
|
||||
timeCreated: 1449415582
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
|
||||
Binary file not shown.
@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user