mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 01:36:05 +08:00
Better check if DOTween requires setup or not + Quicker setup of modules after updating DOTween
This commit is contained in:
parent
2b178f0848
commit
66a296f34f
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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;
|
||||
|
||||
@ -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 ////////////////////////////////////
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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.
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