mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 09:16:02 +08:00
- minor
This commit is contained in:
parent
23982b5631
commit
927c38fa61
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1fa36039328c18e48808faaf6a351f48
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@ -44,6 +44,12 @@ namespace DG.DOTweenEditor
|
||||
EditorUtils.RemoveGlobalDefine(GlobalDefine_TextMeshPro);
|
||||
}
|
||||
|
||||
// Removes all legacy defines
|
||||
public static void RemoveAllLegacyDefines()
|
||||
{
|
||||
EditorUtils.RemoveGlobalDefine(GlobalDefine_Legacy_NoRigidbody);
|
||||
}
|
||||
|
||||
// Adds all Unity Modules defines but not the ones for external assets
|
||||
public static void AddAllUnityDefines()
|
||||
{
|
||||
|
||||
@ -30,6 +30,7 @@ namespace DG.DOTweenEditor
|
||||
break;
|
||||
}
|
||||
if (!containsDOTween) return AssetDeleteResult.DidNotDelete;
|
||||
Debug.Log("::: DOTween deleted");
|
||||
// DOTween is being deleted: deal with it
|
||||
// Remove EditorPrefs
|
||||
EditorPrefs.DeleteKey(Application.dataPath + DOTweenUtilityWindow.Id);
|
||||
@ -53,21 +54,24 @@ namespace DG.DOTweenEditor
|
||||
|
||||
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
|
||||
{
|
||||
Debug.Log("::::::::::::::::::::: OnPostprocessAllAssets :::::::::::::::::::::::::::::");
|
||||
if (_setupDialogRequested) return;
|
||||
|
||||
string[] dotweenEntries = System.Array.FindAll(importedAssets, name => name.Contains("DOTween") && !name.EndsWith(".meta") && !name.EndsWith(".jpg") && !name.EndsWith(".png"));
|
||||
bool dotweenImported = dotweenEntries.Length > 0;
|
||||
Debug.Log("::: DOTween imported: " + dotweenImported);
|
||||
if (dotweenImported) {
|
||||
// Delete old DOTween files
|
||||
EditorUtils.DeleteLegacyNoModulesDOTweenFiles();
|
||||
// Delete old DemiLib configuration
|
||||
EditorUtils.DeleteOldDemiLibCore();
|
||||
// Remove old NoRigidbody define
|
||||
EditorUtils.RemoveGlobalDefine(DOTweenSetup.GlobalDefine_Legacy_NoRigidbody);
|
||||
// Remove old legacy defines
|
||||
DOTweenSetup.RemoveAllLegacyDefines();
|
||||
//
|
||||
bool differentCoreVersion = EditorPrefs.GetString(Application.dataPath + DOTweenUtilityWindow.Id) != Application.dataPath + DOTween.Version;
|
||||
bool differentProVersion = EditorUtils.hasPro && EditorPrefs.GetString(Application.dataPath + DOTweenUtilityWindow.IdPro) != Application.dataPath + EditorUtils.proVersion;
|
||||
bool setupRequired = differentCoreVersion || differentProVersion;
|
||||
Debug.Log("::: Setup required: " + setupRequired + " - " + differentCoreVersion + "/" + differentProVersion);
|
||||
if (setupRequired) {
|
||||
_setupDialogRequested = true;
|
||||
EditorPrefs.SetString(Application.dataPath + DOTweenUtilityWindow.Id, Application.dataPath + DOTween.Version);
|
||||
|
||||
@ -47,7 +47,10 @@ set CopyToDirModulesTest=%1..\ModulesTest.Unity2018\Assets\Demigiant\%5%SubDir%
|
||||
:: Modules test project
|
||||
echo ::: Exporting from %CopyFromDir% to %CopyToDirModulesTest%
|
||||
echo f | xcopy %CopyFromDir% %CopyToDirModulesTest% /Y /I /E
|
||||
:: exit /B
|
||||
:: UnityTests.Unity5
|
||||
echo ::: Exporting from %CopyFromDir% to %CopyToDirUnity5Tests%
|
||||
echo f | xcopy %CopyFromDir% %CopyToDirUnity5Tests% /Y /I /E
|
||||
exit /B
|
||||
:: bin.Global
|
||||
echo ::: Exporting from %CopyFromDir% to %CopyToDir%
|
||||
echo f | xcopy %CopyFromDir% %CopyToDir% /Y /I /E
|
||||
@ -57,9 +60,6 @@ echo f | xcopy %CopyFromDir% %CopyToDirNoMeta% /Y /I /E
|
||||
:: UnityTests.Unity4
|
||||
echo ::: Exporting from %CopyFromDir% to %CopyToDirUnityTests%
|
||||
echo f | xcopy %CopyFromDir% %CopyToDirUnityTests% /Y /I /E
|
||||
:: UnityTests.Unity5
|
||||
echo ::: Exporting from %CopyFromDir% to %CopyToDirUnity5Tests%
|
||||
echo f | xcopy %CopyFromDir% %CopyToDirUnity5Tests% /Y /I /E
|
||||
:: UnityCompatibilityTests.Unity35
|
||||
echo ::: Exporting from %CopyFromDir% to %CopyToDirCompatibilityTests%
|
||||
echo f | xcopy %CopyFromDir% %CopyToDirCompatibilityTests% /Y /I /E
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user