diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML
index a8415be..1d29f72 100644
--- a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML
+++ b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML
@@ -675,7 +675,7 @@
Send a path tween to the given waypoint.
Has no effect if this is not a path tween.
BEWARE, this is a special utility method:
- the lookAt direction might be wrong after calling this and might need to be set manually
+ it works only with Linear eases. Also, the lookAt direction might be wrong after calling this and might need to be set manually
(because it relies on a smooth path movement and doesn't work well with jumps that encompass dramatic direction changes)
Waypoint index to reach
(if higher than the max waypoint index the tween will simply go to the last one)
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll
index 8ee212e..f1b6731 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb
index ae3ae30..d0e63d1 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML
index a8415be..1d29f72 100644
--- a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML
+++ b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML
@@ -675,7 +675,7 @@
Send a path tween to the given waypoint.
Has no effect if this is not a path tween.
BEWARE, this is a special utility method:
- the lookAt direction might be wrong after calling this and might need to be set manually
+ it works only with Linear eases. Also, the lookAt direction might be wrong after calling this and might need to be set manually
(because it relies on a smooth path movement and doesn't work well with jumps that encompass dramatic direction changes)
Waypoint index to reach
(if higher than the max waypoint index the tween will simply go to the last one)
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll
index 8ee212e..f1b6731 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb
index ae3ae30..d0e63d1 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML
index a8415be..1d29f72 100644
--- a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML
+++ b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML
@@ -675,7 +675,7 @@
Send a path tween to the given waypoint.
Has no effect if this is not a path tween.
BEWARE, this is a special utility method:
- the lookAt direction might be wrong after calling this and might need to be set manually
+ it works only with Linear eases. Also, the lookAt direction might be wrong after calling this and might need to be set manually
(because it relies on a smooth path movement and doesn't work well with jumps that encompass dramatic direction changes)
Waypoint index to reach
(if higher than the max waypoint index the tween will simply go to the last one)
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll
index 8ee212e..f1b6731 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 ae3ae30..d0e63d1 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/_Tests/TempTests.cs b/UnityTests.Unity5/Assets/_Tests/TempTests.cs
index 3a5f182..68f3570 100644
--- a/UnityTests.Unity5/Assets/_Tests/TempTests.cs
+++ b/UnityTests.Unity5/Assets/_Tests/TempTests.cs
@@ -11,16 +11,22 @@ using System;
public class TempTests : BrainBase
{
public Transform target;
+ public Ease easeType;
+ public float gotoTime;
public Vector3[] waypoints;
+ Tween t;
+
IEnumerator Start()
{
yield return new WaitForSeconds(0.6f);
- Tween t = target.DOPath(waypoints, 5);
- yield return null;
- yield return null;
-
+ t = target.DOPath(waypoints, 5, PathType.CatmullRom).SetEase(easeType);
t.GotoWaypoint(2);
}
+
+ void OnGUI()
+ {
+ if (GUILayout.Button("Goto")) t.Goto(gotoTime);
+ }
}
\ No newline at end of file
diff --git a/_DOTween.Assembly/DOTween/DOTween.cs b/_DOTween.Assembly/DOTween/DOTween.cs
index b089c77..b17ae36 100644
--- a/_DOTween.Assembly/DOTween/DOTween.cs
+++ b/_DOTween.Assembly/DOTween/DOTween.cs
@@ -21,7 +21,7 @@ namespace DG.Tweening
public class DOTween
{
/// DOTween's version
- public static readonly string Version = "1.0.345";
+ public static readonly string Version = "1.0.346";
///////////////////////////////////////////////
// Options ////////////////////////////////////
diff --git a/_DOTween.Assembly/DOTween/TweenExtensions.cs b/_DOTween.Assembly/DOTween/TweenExtensions.cs
index ac2d769..6e1a9c6 100644
--- a/_DOTween.Assembly/DOTween/TweenExtensions.cs
+++ b/_DOTween.Assembly/DOTween/TweenExtensions.cs
@@ -5,6 +5,7 @@
// This work is subject to the terms at http://dotween.demigiant.com/license.php
using DG.Tweening.Core;
+using DG.Tweening.Core.Easing;
using DG.Tweening.Plugins.Core.PathCore;
using DG.Tweening.Plugins.Options;
using UnityEngine;
@@ -212,7 +213,7 @@ namespace DG.Tweening
/// Send a path tween to the given waypoint.
/// Has no effect if this is not a path tween.
/// BEWARE, this is a special utility method:
- /// the lookAt direction might be wrong after calling this and might need to be set manually
+ /// it works only with Linear eases. Also, the lookAt direction might be wrong after calling this and might need to be set manually
/// (because it relies on a smooth path movement and doesn't work well with jumps that encompass dramatic direction changes)
/// Waypoint index to reach
/// (if higher than the max waypoint index the tween will simply go to the last one)
@@ -232,6 +233,7 @@ namespace DG.Tweening
if (Debugger.logPriority > 1) Debugger.LogNonPathTween(t); return;
}
+ if (!t.startupDone) TweenManager.ForceInit(t); // Initialize the tween if it's not initialized already (required)
if (waypointIndex < 0) waypointIndex = 0;
else if (waypointIndex > pathTween.changeValue.wps.Length - 1) waypointIndex = pathTween.changeValue.wps.Length - 1;
// Find path percentage relative to given waypoint
diff --git a/_DOTween.Assembly/bin/DOTween.XML b/_DOTween.Assembly/bin/DOTween.XML
index a8415be..1d29f72 100644
--- a/_DOTween.Assembly/bin/DOTween.XML
+++ b/_DOTween.Assembly/bin/DOTween.XML
@@ -675,7 +675,7 @@
Send a path tween to the given waypoint.
Has no effect if this is not a path tween.
BEWARE, this is a special utility method:
- the lookAt direction might be wrong after calling this and might need to be set manually
+ it works only with Linear eases. Also, the lookAt direction might be wrong after calling this and might need to be set manually
(because it relies on a smooth path movement and doesn't work well with jumps that encompass dramatic direction changes)
Waypoint index to reach
(if higher than the max waypoint index the tween will simply go to the last one)
diff --git a/_DOTween.Assembly/bin/DOTween.dll b/_DOTween.Assembly/bin/DOTween.dll
index 8ee212e..f1b6731 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 ae3ae30..d0e63d1 100644
Binary files a/_DOTween.Assembly/bin/DOTween.dll.mdb and b/_DOTween.Assembly/bin/DOTween.dll.mdb differ