diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML index bd8fc43..a176870 100644 --- a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML +++ b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML @@ -231,6 +231,32 @@ Looks for the type within all possible project assembly names + + NO-GC METHOD: changes the start value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new start value + If bigger than 0 applies it as the new tween duration + + + NO-GC METHOD: changes the end value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new end value + If TRUE the start value will become the current target's value, otherwise it will stay the same + + + NO-GC METHOD: changes the end value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new end value + If bigger than 0 applies it as the new tween duration + If TRUE the start value will become the current target's value, otherwise it will stay the same + + + NO-GC METHOD: changes the start and end value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new start value + The new end value + If bigger than 0 applies it as the new tween duration + Struct that stores two colors (used for LineRenderer tweens) diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll index 90f9662..078c790 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb index 2e063a6..81a5f66 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll index ca32acf..d1bc8b0 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb index 17dae9e..c7682d8 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenUpgradeManager.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenUpgradeManager.dll index 1414b22..014c421 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenUpgradeManager.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenUpgradeManager.dll differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenUpgradeManager.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenUpgradeManager.dll.mdb index 9ab61ed..7c751db 100644 Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenUpgradeManager.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenUpgradeManager.dll.mdb differ diff --git a/_DOTween.Assembly/DOTween/Core/TweenerCore.cs b/_DOTween.Assembly/DOTween/Core/TweenerCore.cs index f40576e..cd4f005 100644 --- a/_DOTween.Assembly/DOTween/Core/TweenerCore.cs +++ b/_DOTween.Assembly/DOTween/Core/TweenerCore.cs @@ -111,6 +111,57 @@ namespace DG.Tweening.Core return DoChangeValues(this, (T2)newStartValue, (T2)newEndValue, newDuration); } + #region Advanced Usage (direct from TweenerCore reference) + + /// NO-GC METHOD: changes the start value of a tween and rewinds it (without pausing it). + /// Has no effect with tweens that are inside Sequences + /// The new start value + /// If bigger than 0 applies it as the new tween duration + public TweenerCore ChangeStartValue(T2 newStartValue, float newDuration = -1) + { + if (isSequenced) { + if (Debugger.logPriority >= 1) Debugger.LogWarning(_TxtCantChangeSequencedValues); + return this; + } + return DoChangeStartValue(this, newStartValue, newDuration); + } + + /// NO-GC METHOD: changes the end value of a tween and rewinds it (without pausing it). + /// Has no effect with tweens that are inside Sequences + /// The new end value + /// If TRUE the start value will become the current target's value, otherwise it will stay the same + public TweenerCore ChangeEndValue(T2 newEndValue, bool snapStartValue) + { return ChangeEndValue(newEndValue, -1, snapStartValue); } + /// NO-GC METHOD: changes the end value of a tween and rewinds it (without pausing it). + /// Has no effect with tweens that are inside Sequences + /// The new end value + /// If bigger than 0 applies it as the new tween duration + /// If TRUE the start value will become the current target's value, otherwise it will stay the same + public TweenerCore ChangeEndValue(T2 newEndValue, float newDuration = -1, bool snapStartValue = false) + { + if (isSequenced) { + if (Debugger.logPriority >= 1) Debugger.LogWarning(_TxtCantChangeSequencedValues); + return this; + } + return DoChangeEndValue(this, newEndValue, newDuration, snapStartValue); + } + + /// NO-GC METHOD: changes the start and end value of a tween and rewinds it (without pausing it). + /// Has no effect with tweens that are inside Sequences + /// The new start value + /// The new end value + /// If bigger than 0 applies it as the new tween duration + public TweenerCore ChangeValues(T2 newStartValue, T2 newEndValue, float newDuration = -1) + { + if (isSequenced) { + if (Debugger.logPriority >= 1) Debugger.LogWarning(_TxtCantChangeSequencedValues); + return this; + } + return DoChangeValues(this, newStartValue, newEndValue, newDuration); + } + + #endregion + #endregion // Sets From tweens, immediately sending the target to its endValue and assigning new start/endValues. diff --git a/_DOTween.Assembly/DOTween/DOTween.cs b/_DOTween.Assembly/DOTween/DOTween.cs index 2c6fd63..a4cbcf2 100644 --- a/_DOTween.Assembly/DOTween/DOTween.cs +++ b/_DOTween.Assembly/DOTween/DOTween.cs @@ -32,7 +32,7 @@ namespace DG.Tweening public class DOTween { /// DOTween's version - public static readonly string Version = "1.2.230"; // Last version before modules: 1.1.755 + public static readonly string Version = "1.2.235"; // Last version before modules: 1.1.755 /////////////////////////////////////////////// // Options //////////////////////////////////// diff --git a/_DOTween.Assembly/DOTween/Tweener.cs b/_DOTween.Assembly/DOTween/Tweener.cs index 853f9db..655ee08 100644 --- a/_DOTween.Assembly/DOTween/Tweener.cs +++ b/_DOTween.Assembly/DOTween/Tweener.cs @@ -158,7 +158,7 @@ namespace DG.Tweening } // CALLED BY TweenerCore - internal static Tweener DoChangeStartValue( + internal static TweenerCore DoChangeStartValue( TweenerCore t, T2 newStartValue, float newDuration ) where TPlugOptions : struct, IPlugOptions { @@ -184,7 +184,7 @@ namespace DG.Tweening } // CALLED BY TweenerCore - internal static Tweener DoChangeEndValue( + internal static TweenerCore DoChangeEndValue( TweenerCore t, T2 newEndValue, float newDuration, bool snapStartValue ) where TPlugOptions : struct, IPlugOptions { @@ -221,7 +221,7 @@ namespace DG.Tweening return t; } - internal static Tweener DoChangeValues( + internal static TweenerCore DoChangeValues( TweenerCore t, T2 newStartValue, T2 newEndValue, float newDuration ) where TPlugOptions : struct, IPlugOptions { diff --git a/_DOTween.Assembly/bin/DOTween.XML b/_DOTween.Assembly/bin/DOTween.XML index bd8fc43..a176870 100644 --- a/_DOTween.Assembly/bin/DOTween.XML +++ b/_DOTween.Assembly/bin/DOTween.XML @@ -231,6 +231,32 @@ Looks for the type within all possible project assembly names + + NO-GC METHOD: changes the start value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new start value + If bigger than 0 applies it as the new tween duration + + + NO-GC METHOD: changes the end value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new end value + If TRUE the start value will become the current target's value, otherwise it will stay the same + + + NO-GC METHOD: changes the end value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new end value + If bigger than 0 applies it as the new tween duration + If TRUE the start value will become the current target's value, otherwise it will stay the same + + + NO-GC METHOD: changes the start and end value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new start value + The new end value + If bigger than 0 applies it as the new tween duration + Struct that stores two colors (used for LineRenderer tweens) diff --git a/_DOTween.Assembly/bin/DOTween.dll b/_DOTween.Assembly/bin/DOTween.dll index 90f9662..078c790 100644 Binary files a/_DOTween.Assembly/bin/DOTween.dll and b/_DOTween.Assembly/bin/DOTween.dll differ diff --git a/_DOTween.Assembly/bin/DOTween.dll.mdb b/_DOTween.Assembly/bin/DOTween.dll.mdb index 2e063a6..81a5f66 100644 Binary files a/_DOTween.Assembly/bin/DOTween.dll.mdb and b/_DOTween.Assembly/bin/DOTween.dll.mdb differ diff --git a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll index ca32acf..d1bc8b0 100644 Binary files a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll and b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll differ diff --git a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb index 17dae9e..c7682d8 100644 Binary files a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb and b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb differ diff --git a/_DOTween.Assembly/bin/Editor/DOTweenUpgradeManager.dll b/_DOTween.Assembly/bin/Editor/DOTweenUpgradeManager.dll index 1414b22..014c421 100644 Binary files a/_DOTween.Assembly/bin/Editor/DOTweenUpgradeManager.dll and b/_DOTween.Assembly/bin/Editor/DOTweenUpgradeManager.dll differ diff --git a/_DOTween.Assembly/bin/Editor/DOTweenUpgradeManager.dll.mdb b/_DOTween.Assembly/bin/Editor/DOTweenUpgradeManager.dll.mdb index 9ab61ed..7c751db 100644 Binary files a/_DOTween.Assembly/bin/Editor/DOTweenUpgradeManager.dll.mdb and b/_DOTween.Assembly/bin/Editor/DOTweenUpgradeManager.dll.mdb differ