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:
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 class DOTweenSettings : ScriptableObject
|
||||||
{
|
{
|
||||||
public const string AssetName = "DOTweenSettings";
|
public const string AssetName = "DOTweenSettings";
|
||||||
|
public const string AssetFullFilename = AssetName + ".asset";
|
||||||
|
|
||||||
public bool useSafeMode = true;
|
public bool useSafeMode = true;
|
||||||
public float timeScale = 1;
|
public float timeScale = 1;
|
||||||
|
|||||||
@ -32,7 +32,7 @@ namespace DG.Tweening
|
|||||||
public class DOTween
|
public class DOTween
|
||||||
{
|
{
|
||||||
/// <summary>DOTween's version</summary>
|
/// <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 ////////////////////////////////////
|
// Options ////////////////////////////////////
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using DG.DOTweenEditor.UI;
|
using DG.DOTweenEditor.UI;
|
||||||
using DG.Tweening;
|
using DG.Tweening;
|
||||||
|
using DG.Tweening.Core;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@ -64,9 +65,14 @@ namespace DG.DOTweenEditor
|
|||||||
if (!dotweenImported) return;
|
if (!dotweenImported) return;
|
||||||
|
|
||||||
// Reapply modules
|
// Reapply modules
|
||||||
EditorUtils.DelayedCall(1f, DOTweenUtilityWindowModules.ApplyModulesSettings);
|
EditorUtils.DelayedCall(0.1f, ()=> {
|
||||||
|
// Debug.Log("Apply Modules Settings after reimport");
|
||||||
|
DOTweenUtilityWindowModules.ApplyModulesSettings();
|
||||||
|
});
|
||||||
// DOTweenUtilityWindowModules.ApplyModulesSettings();
|
// DOTweenUtilityWindowModules.ApplyModulesSettings();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// // Delete old DOTween files
|
// // Delete old DOTween files
|
||||||
// EditorUtils.DeleteLegacyNoModulesDOTweenFiles();
|
// EditorUtils.DeleteLegacyNoModulesDOTweenFiles();
|
||||||
// // Delete old DemiLib configuration
|
// // Delete old DemiLib configuration
|
||||||
|
|||||||
@ -100,6 +100,7 @@ namespace DG.DOTweenEditor
|
|||||||
DeleteAssetsIfExist(new[] {
|
DeleteAssetsIfExist(new[] {
|
||||||
adbDOTweenDir + "Editor/DOTweenUpgradeManager.dll",
|
adbDOTweenDir + "Editor/DOTweenUpgradeManager.dll",
|
||||||
adbDOTweenDir + "Editor/DOTweenUpgradeManager.xml",
|
adbDOTweenDir + "Editor/DOTweenUpgradeManager.xml",
|
||||||
|
adbDOTweenDir + "Editor/DOTweenUpgradeManager.pdb",
|
||||||
adbDOTweenDir + "Editor/DOTweenUpgradeManager.dll.mdb"
|
adbDOTweenDir + "Editor/DOTweenUpgradeManager.dll.mdb"
|
||||||
});
|
});
|
||||||
AssetDatabase.StopAssetEditing();
|
AssetDatabase.StopAssetEditing();
|
||||||
|
|||||||
@ -381,7 +381,7 @@ namespace DG.DOTweenEditor.UI
|
|||||||
public LocationData(string srcDir) : this()
|
public LocationData(string srcDir) : this()
|
||||||
{
|
{
|
||||||
dir = srcDir;
|
dir = srcDir;
|
||||||
filePath = dir + EditorUtils.pathSlash + DOTweenSettings.AssetName + ".asset";
|
filePath = dir + EditorUtils.pathSlash + DOTweenSettings.AssetFullFilename;
|
||||||
adbFilePath = EditorUtils.FullPathToADBPath(filePath);
|
adbFilePath = EditorUtils.FullPathToADBPath(filePath);
|
||||||
adbParentDir = EditorUtils.FullPathToADBPath(dir.Substring(0, dir.LastIndexOf(EditorUtils.pathSlash)));
|
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