1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 09:16:02 +08:00

Better check if DOTween requires setup or not + Quicker setup of modules after updating DOTween

This commit is contained in:
Demigiant 2019-01-03 14:00:45 +01:00
parent 2b178f0848
commit 66a296f34f
17 changed files with 11 additions and 3 deletions

View File

@ -11,6 +11,7 @@ namespace DG.Tweening.Core
public class DOTweenSettings : ScriptableObject
{
public const string AssetName = "DOTweenSettings";
public const string AssetFullFilename = AssetName + ".asset";
public bool useSafeMode = true;
public float timeScale = 1;

View File

@ -32,7 +32,7 @@ namespace DG.Tweening
public class DOTween
{
/// <summary>DOTween's version</summary>
public static readonly string Version = "1.2.160"; // Last version before modules: 1.1.755
public static readonly string Version = "1.2.165"; // Last version before modules: 1.1.755
///////////////////////////////////////////////
// Options ////////////////////////////////////

View File

@ -6,6 +6,7 @@
using System.IO;
using DG.DOTweenEditor.UI;
using DG.Tweening;
using DG.Tweening.Core;
using UnityEditor;
using UnityEngine;
@ -64,9 +65,14 @@ namespace DG.DOTweenEditor
if (!dotweenImported) return;
// Reapply modules
EditorUtils.DelayedCall(1f, DOTweenUtilityWindowModules.ApplyModulesSettings);
EditorUtils.DelayedCall(0.1f, ()=> {
// Debug.Log("Apply Modules Settings after reimport");
DOTweenUtilityWindowModules.ApplyModulesSettings();
});
// DOTweenUtilityWindowModules.ApplyModulesSettings();
// // Delete old DOTween files
// EditorUtils.DeleteLegacyNoModulesDOTweenFiles();
// // Delete old DemiLib configuration

View File

@ -100,6 +100,7 @@ namespace DG.DOTweenEditor
DeleteAssetsIfExist(new[] {
adbDOTweenDir + "Editor/DOTweenUpgradeManager.dll",
adbDOTweenDir + "Editor/DOTweenUpgradeManager.xml",
adbDOTweenDir + "Editor/DOTweenUpgradeManager.pdb",
adbDOTweenDir + "Editor/DOTweenUpgradeManager.dll.mdb"
});
AssetDatabase.StopAssetEditing();

View File

@ -381,7 +381,7 @@ namespace DG.DOTweenEditor.UI
public LocationData(string srcDir) : this()
{
dir = srcDir;
filePath = dir + EditorUtils.pathSlash + DOTweenSettings.AssetName + ".asset";
filePath = dir + EditorUtils.pathSlash + DOTweenSettings.AssetFullFilename;
adbFilePath = EditorUtils.FullPathToADBPath(filePath);
adbParentDir = EditorUtils.FullPathToADBPath(dir.Substring(0, dir.LastIndexOf(EditorUtils.pathSlash)));
}

Binary file not shown.