diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll
index f785fdb..1e3ccad 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 fa6b9ae..649d949 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/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll
index 7e3ea2a..afe4d36 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb
index 0f123d9..1a909a0 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.xml b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.xml
index 2d78cb8..8b35301 100644
--- a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.xml
+++ b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.xml
@@ -10,6 +10,20 @@
These, as all DOTween43 methods, require Unity 4.3 or later.
+
+ Tweens a Material's color using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
+
+ Tweens a Material's named color property using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to use
+ The name of the material property to tween (like _Tint or _SpecColor)
+ The duration of the tween
+
Tweens a SpriteRenderer's color to the given value.
Also stores the spriteRenderer as the tween's target so it can be used for filtered operations
@@ -20,6 +34,12 @@
Also stores the spriteRenderer as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
+
+ Tweens a SpriteRenderer's colors using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
Tweens a Rigidbody2D's position to the given value.
Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
@@ -46,7 +66,8 @@
Tweens a Rigidbody2D's position to the given value, while also applying a jump effect along the Y axis.
Returns a Sequence instead of a Tweener.
- Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
+ Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations.
+ IMPORTANT: a rigidbody2D can't be animated in a jump arc using MovePosition, so the tween will directly set the position
The end value to reach
Power of the jump (the max height of the jump is represented by this plus the final Y offset)
Total number of jumps
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll
index dff3278..5c3b4c3 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb
index 604bbc5..80d7162 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.xml b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.xml
index 8ba34f3..3bdc0be 100644
--- a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.xml
+++ b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.xml
@@ -51,6 +51,12 @@
Also stores the image as the tween's target so it can be used for filtered operations
The end value to reach (0 to 1)The duration of the tween
+
+ Tweens an Image's colors using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
Tweens an LayoutElement's flexibleWidth/Height to the given value.
Also stores the LayoutElement as the tween's target so it can be used for filtered operations
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll
index fbad7d4..76ad9dd 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb
index 14d4a95..8344d75 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll
index 7cf53dd..d510d3b 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb
index f5453c5..7621b28 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll
index f785fdb..1e3ccad 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 fa6b9ae..649d949 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.Unity4/Assets/Demigiant/DOTween/DOTween43.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll
index 7e3ea2a..afe4d36 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb
index 0f123d9..1a909a0 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.xml b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.xml
index 2d78cb8..8b35301 100644
--- a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.xml
+++ b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.xml
@@ -10,6 +10,20 @@
These, as all DOTween43 methods, require Unity 4.3 or later.
+
+ Tweens a Material's color using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
+
+ Tweens a Material's named color property using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to use
+ The name of the material property to tween (like _Tint or _SpecColor)
+ The duration of the tween
+
Tweens a SpriteRenderer's color to the given value.
Also stores the spriteRenderer as the tween's target so it can be used for filtered operations
@@ -20,6 +34,12 @@
Also stores the spriteRenderer as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
+
+ Tweens a SpriteRenderer's colors using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
Tweens a Rigidbody2D's position to the given value.
Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
@@ -46,7 +66,8 @@
Tweens a Rigidbody2D's position to the given value, while also applying a jump effect along the Y axis.
Returns a Sequence instead of a Tweener.
- Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
+ Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations.
+ IMPORTANT: a rigidbody2D can't be animated in a jump arc using MovePosition, so the tween will directly set the position
The end value to reach
Power of the jump (the max height of the jump is represented by this plus the final Y offset)
Total number of jumps
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll
index dff3278..5c3b4c3 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb
index 604bbc5..80d7162 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.xml b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.xml
index 8ba34f3..3bdc0be 100644
--- a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.xml
+++ b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.xml
@@ -51,6 +51,12 @@
Also stores the image as the tween's target so it can be used for filtered operations
The end value to reach (0 to 1)The duration of the tween
+
+ Tweens an Image's colors using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
Tweens an LayoutElement's flexibleWidth/Height to the given value.
Also stores the LayoutElement as the tween's target so it can be used for filtered operations
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll
index fbad7d4..76ad9dd 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb
index 14d4a95..8344d75 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll
index 7cf53dd..d510d3b 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb
index f5453c5..7621b28 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll
index f785fdb..1e3ccad 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 fa6b9ae..649d949 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/DOTween43.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll
index 7e3ea2a..afe4d36 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb
index 0f123d9..1a909a0 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.xml b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.xml
index 2d78cb8..8b35301 100644
--- a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.xml
+++ b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.xml
@@ -10,6 +10,20 @@
These, as all DOTween43 methods, require Unity 4.3 or later.
+
+ Tweens a Material's color using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
+
+ Tweens a Material's named color property using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to use
+ The name of the material property to tween (like _Tint or _SpecColor)
+ The duration of the tween
+
Tweens a SpriteRenderer's color to the given value.
Also stores the spriteRenderer as the tween's target so it can be used for filtered operations
@@ -20,6 +34,12 @@
Also stores the spriteRenderer as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
+
+ Tweens a SpriteRenderer's colors using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
Tweens a Rigidbody2D's position to the given value.
Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
@@ -46,7 +66,8 @@
Tweens a Rigidbody2D's position to the given value, while also applying a jump effect along the Y axis.
Returns a Sequence instead of a Tweener.
- Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
+ Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations.
+ IMPORTANT: a rigidbody2D can't be animated in a jump arc using MovePosition, so the tween will directly set the position
The end value to reach
Power of the jump (the max height of the jump is represented by this plus the final Y offset)
Total number of jumps
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll
index dff3278..5c3b4c3 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb
index 604bbc5..80d7162 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.xml b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.xml
index 8ba34f3..3bdc0be 100644
--- a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.xml
+++ b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.xml
@@ -51,6 +51,12 @@
Also stores the image as the tween's target so it can be used for filtered operations
The end value to reach (0 to 1)The duration of the tween
+
+ Tweens an Image's colors using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
Tweens an LayoutElement's flexibleWidth/Height to the given value.
Also stores the LayoutElement as the tween's target so it can be used for filtered operations
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll
index fbad7d4..76ad9dd 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb
index 14d4a95..8344d75 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll
index 7cf53dd..d510d3b 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 f5453c5..7621b28 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/_DOTween Pro Examples/_LightFade.unity b/UnityTests.Unity5/Assets/_DOTween Pro Examples/_LightFade.unity
new file mode 100644
index 0000000..81e08a5
Binary files /dev/null and b/UnityTests.Unity5/Assets/_DOTween Pro Examples/_LightFade.unity differ
diff --git a/UnityTests.Unity5/Assets/_DOTween Pro Examples/_LightFade.unity.meta b/UnityTests.Unity5/Assets/_DOTween Pro Examples/_LightFade.unity.meta
new file mode 100644
index 0000000..30c0ecd
--- /dev/null
+++ b/UnityTests.Unity5/Assets/_DOTween Pro Examples/_LightFade.unity.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: ff9f3d81e30130643bf3e3b67c0674b5
+timeCreated: 1442748793
+licenseType: Free
+DefaultImporter:
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.cs b/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.cs
new file mode 100644
index 0000000..f830644
--- /dev/null
+++ b/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.cs
@@ -0,0 +1,18 @@
+using UnityEngine;
+using System.Collections;
+using DG.Tweening;
+
+public class DOJumpRigidbody2D : MonoBehaviour
+{
+ public Rigidbody r3D;
+ public Rigidbody2D r2D;
+
+ IEnumerator Start()
+ {
+ yield return new WaitForSeconds(1);
+
+ r3D.DOJump(new Vector3(5f, 0, 0), 3f, 2, 2f, false);
+ r2D.DOJump(new Vector2(5f, 0), 3f, 2, 2f, false);
+ // r2D.transform.DOJump(new Vector2(5f, 0), 3f, 2, 2f, false);
+ }
+}
\ No newline at end of file
diff --git a/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.cs.meta b/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.cs.meta
new file mode 100644
index 0000000..423f109
--- /dev/null
+++ b/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.cs.meta
@@ -0,0 +1,12 @@
+fileFormatVersion: 2
+guid: 5b8392de904468245aed99718958ff20
+timeCreated: 1443177456
+licenseType: Free
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.unity b/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.unity
new file mode 100644
index 0000000..cf93987
Binary files /dev/null and b/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.unity differ
diff --git a/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.unity.meta b/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.unity.meta
new file mode 100644
index 0000000..6aef69b
--- /dev/null
+++ b/UnityTests.Unity5/Assets/_Tests/DOJumpRigidbody2D.unity.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: d0861582ce1d46a409d07724df4cd4c4
+timeCreated: 1443177448
+licenseType: Free
+DefaultImporter:
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/_DOTween.Assembly/DOTween/DOTween.cs b/_DOTween.Assembly/DOTween/DOTween.cs
index 1461543..f80d955 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.0.830";
+ public static readonly string Version = "1.0.850";
///////////////////////////////////////////////
// Options ////////////////////////////////////
diff --git a/_DOTween.Assembly/DOTween/ShortcutExtensions.cs b/_DOTween.Assembly/DOTween/ShortcutExtensions.cs
index 31e2f50..9cb2f77 100644
--- a/_DOTween.Assembly/DOTween/ShortcutExtensions.cs
+++ b/_DOTween.Assembly/DOTween/ShortcutExtensions.cs
@@ -451,7 +451,7 @@ namespace DG.Tweening
.SetOptions(AxisConstraint.X, snapping).SetEase(Ease.Linear)
.OnUpdate(() => {
if (!offsetYSet) {
- offsetYSet = false;
+ offsetYSet = true;
offsetY = s.isRelative ? endValue.y : endValue.y - startPosY;
}
Vector3 pos = target.position;
@@ -810,7 +810,7 @@ namespace DG.Tweening
.SetOptions(AxisConstraint.X, snapping).SetEase(Ease.Linear)
.OnUpdate(() => {
if (!offsetYSet) {
- offsetYSet = false;
+ offsetYSet = true;
offsetY = s.isRelative ? endValue.y : endValue.y - startPosY;
}
Vector3 pos = target.position;
diff --git a/_DOTween.Assembly/DOTween43/ShortcutExtensions43.cs b/_DOTween.Assembly/DOTween43/ShortcutExtensions43.cs
index 75a7e09..8fa0996 100644
--- a/_DOTween.Assembly/DOTween43/ShortcutExtensions43.cs
+++ b/_DOTween.Assembly/DOTween43/ShortcutExtensions43.cs
@@ -15,6 +15,57 @@ namespace DG.Tweening
///
public static class ShortcutExtensions43
{
+ #region Material
+
+ /// Tweens a Material's color using the given gradient
+ /// (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ /// Also stores the image as the tween's target so it can be used for filtered operations
+ /// The gradient to useThe duration of the tween
+ public static Sequence DOGradientColor(this Material target, Gradient gradient, float duration)
+ {
+ Sequence s = DOTween.Sequence();
+ GradientColorKey[] colors = gradient.colorKeys;
+ int len = colors.Length;
+ for (int i = 0; i < len; ++i) {
+ GradientColorKey c = colors[i];
+ if (i == 0 && c.time <= 0) {
+ target.color = c.color;
+ continue;
+ }
+ float colorDuration = i == len - 1
+ ? duration - s.Duration(false) // Verifies that total duration is correct
+ : duration * (i == 0 ? c.time : c.time - colors[i - 1].time);
+ s.Append(target.DOColor(c.color, colorDuration).SetEase(Ease.Linear));
+ }
+ return s;
+ }
+ /// Tweens a Material's named color property using the given gradient
+ /// (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ /// Also stores the image as the tween's target so it can be used for filtered operations
+ /// The gradient to use
+ /// The name of the material property to tween (like _Tint or _SpecColor)
+ /// The duration of the tween
+ public static Sequence DOGradientColor(this Material target, Gradient gradient, string property, float duration)
+ {
+ Sequence s = DOTween.Sequence();
+ GradientColorKey[] colors = gradient.colorKeys;
+ int len = colors.Length;
+ for (int i = 0; i < len; ++i) {
+ GradientColorKey c = colors[i];
+ if (i == 0 && c.time <= 0) {
+ target.color = c.color;
+ continue;
+ }
+ float colorDuration = i == len - 1
+ ? duration - s.Duration(false) // Verifies that total duration is correct
+ : duration * (i == 0 ? c.time : c.time - colors[i - 1].time);
+ s.Append(target.DOColor(c.color, property, colorDuration).SetEase(Ease.Linear));
+ }
+ return s;
+ }
+
+ #endregion
+
#region SpriteRenderer
/// Tweens a SpriteRenderer's color to the given value.
@@ -34,6 +85,29 @@ namespace DG.Tweening
.SetTarget(target);
}
+ /// Tweens a SpriteRenderer's colors using the given gradient
+ /// (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ /// Also stores the image as the tween's target so it can be used for filtered operations
+ /// The gradient to useThe duration of the tween
+ public static Sequence DOGradientColor(this SpriteRenderer target, Gradient gradient, float duration)
+ {
+ Sequence s = DOTween.Sequence();
+ GradientColorKey[] colors = gradient.colorKeys;
+ int len = colors.Length;
+ for (int i = 0; i < len; ++i) {
+ GradientColorKey c = colors[i];
+ if (i == 0 && c.time <= 0) {
+ target.color = c.color;
+ continue;
+ }
+ float colorDuration = i == len - 1
+ ? duration - s.Duration(false) // Verifies that total duration is correct
+ : duration * (i == 0 ? c.time : c.time - colors[i - 1].time);
+ s.Append(target.DOColor(c.color, colorDuration).SetEase(Ease.Linear));
+ }
+ return s;
+ }
+
#endregion
#region Rigidbody2D Shortcuts
@@ -93,7 +167,8 @@ namespace DG.Tweening
/// Tweens a Rigidbody2D's position to the given value, while also applying a jump effect along the Y axis.
/// Returns a Sequence instead of a Tweener.
- /// Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
+ /// Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations.
+ /// IMPORTANT: a rigidbody2D can't be animated in a jump arc using MovePosition, so the tween will directly set the position
/// The end value to reach
/// Power of the jump (the max height of the jump is represented by this plus the final Y offset)
/// Total number of jumps
@@ -107,24 +182,24 @@ namespace DG.Tweening
bool offsetYSet = false;
Sequence s = DOTween.Sequence();
#if COMPATIBLE
- s.Append(DOTween.To(() => target.position, x => target.MovePosition(x.value), new Vector3(endValue.x, 0, 0), duration)
+ s.Append(DOTween.To(() => target.position, x => target.position = x.value, new Vector3(endValue.x, 0, 0), duration)
#else
- s.Append(DOTween.To(() => target.position, target.MovePosition, new Vector2(endValue.x, 0), duration)
+ s.Append(DOTween.To(() => target.position, x => target.position = x, new Vector2(endValue.x, 0), duration)
#endif
.SetOptions(AxisConstraint.X, snapping).SetEase(Ease.Linear)
.OnUpdate(() => {
if (!offsetYSet) {
- offsetYSet = false;
+ offsetYSet = true;
offsetY = s.isRelative ? endValue.y : endValue.y - startPosY;
}
Vector2 pos = target.position;
pos.y += DOVirtual.EasedValue(0, offsetY, s.ElapsedDirectionalPercentage(), Ease.OutQuad);
- target.MovePosition(pos);
+ target.position = pos;
})
#if COMPATIBLE
- ).Join(DOTween.To(() => target.position, x => target.MovePosition(x.value), new Vector3(0, jumpPower, 0), duration / (numJumps * 2))
+ ).Join(DOTween.To(() => target.position, x => target.position = x.value, new Vector3(0, jumpPower, 0), duration / (numJumps * 2))
#else
- ).Join(DOTween.To(() => target.position, target.MovePosition, new Vector2(0, jumpPower), duration / (numJumps * 2))
+ ).Join(DOTween.To(() => target.position, x=> target.position = x, new Vector2(0, jumpPower), duration / (numJumps * 2))
#endif
.SetOptions(AxisConstraint.Y, snapping).SetEase(Ease.OutQuad)
.SetLoops(numJumps * 2, LoopType.Yoyo).SetRelative()
diff --git a/_DOTween.Assembly/DOTween46/ShortcutExtensions46.cs b/_DOTween.Assembly/DOTween46/ShortcutExtensions46.cs
index a84b14a..ac9103f 100644
--- a/_DOTween.Assembly/DOTween46/ShortcutExtensions46.cs
+++ b/_DOTween.Assembly/DOTween46/ShortcutExtensions46.cs
@@ -83,6 +83,29 @@ namespace DG.Tweening
.SetTarget(target);
}
+ /// Tweens an Image's colors using the given gradient
+ /// (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ /// Also stores the image as the tween's target so it can be used for filtered operations
+ /// The gradient to useThe duration of the tween
+ public static Sequence DOGradientColor(this Image target, Gradient gradient, float duration)
+ {
+ Sequence s = DOTween.Sequence();
+ GradientColorKey[] colors = gradient.colorKeys;
+ int len = colors.Length;
+ for (int i = 0; i < len; ++i) {
+ GradientColorKey c = colors[i];
+ if (i == 0 && c.time <= 0) {
+ target.color = c.color;
+ continue;
+ }
+ float colorDuration = i == len - 1
+ ? duration - s.Duration(false) // Verifies that total duration is correct
+ : duration * (i == 0 ? c.time : c.time - colors[i - 1].time);
+ s.Append(target.DOColor(c.color, colorDuration).SetEase(Ease.Linear));
+ }
+ return s;
+ }
+
#endregion
#region LayoutElement
@@ -273,7 +296,7 @@ namespace DG.Tweening
).SetTarget(target).SetEase(DOTween.defaultEaseType);
s.OnUpdate(() => {
if (!offsetYSet) {
- offsetYSet = false;
+ offsetYSet = true;
offsetY = s.isRelative ? endValue.y : endValue.y - startPosY;
}
Vector2 pos = target.anchoredPosition;
diff --git a/_DOTween.Assembly/bin/DOTween.dll b/_DOTween.Assembly/bin/DOTween.dll
index f785fdb..1e3ccad 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 fa6b9ae..649d949 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/DOTween43.dll b/_DOTween.Assembly/bin/DOTween43.dll
index 7e3ea2a..afe4d36 100644
Binary files a/_DOTween.Assembly/bin/DOTween43.dll and b/_DOTween.Assembly/bin/DOTween43.dll differ
diff --git a/_DOTween.Assembly/bin/DOTween43.dll.mdb b/_DOTween.Assembly/bin/DOTween43.dll.mdb
index 0f123d9..1a909a0 100644
Binary files a/_DOTween.Assembly/bin/DOTween43.dll.mdb and b/_DOTween.Assembly/bin/DOTween43.dll.mdb differ
diff --git a/_DOTween.Assembly/bin/DOTween43.xml b/_DOTween.Assembly/bin/DOTween43.xml
index 2d78cb8..8b35301 100644
--- a/_DOTween.Assembly/bin/DOTween43.xml
+++ b/_DOTween.Assembly/bin/DOTween43.xml
@@ -10,6 +10,20 @@
These, as all DOTween43 methods, require Unity 4.3 or later.
+
+ Tweens a Material's color using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
+
+ Tweens a Material's named color property using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to use
+ The name of the material property to tween (like _Tint or _SpecColor)
+ The duration of the tween
+
Tweens a SpriteRenderer's color to the given value.
Also stores the spriteRenderer as the tween's target so it can be used for filtered operations
@@ -20,6 +34,12 @@
Also stores the spriteRenderer as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
+
+ Tweens a SpriteRenderer's colors using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
Tweens a Rigidbody2D's position to the given value.
Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
@@ -46,7 +66,8 @@
Tweens a Rigidbody2D's position to the given value, while also applying a jump effect along the Y axis.
Returns a Sequence instead of a Tweener.
- Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations
+ Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations.
+ IMPORTANT: a rigidbody2D can't be animated in a jump arc using MovePosition, so the tween will directly set the position
The end value to reach
Power of the jump (the max height of the jump is represented by this plus the final Y offset)
Total number of jumps
diff --git a/_DOTween.Assembly/bin/DOTween46.dll b/_DOTween.Assembly/bin/DOTween46.dll
index dff3278..5c3b4c3 100644
Binary files a/_DOTween.Assembly/bin/DOTween46.dll and b/_DOTween.Assembly/bin/DOTween46.dll differ
diff --git a/_DOTween.Assembly/bin/DOTween46.dll.mdb b/_DOTween.Assembly/bin/DOTween46.dll.mdb
index 604bbc5..80d7162 100644
Binary files a/_DOTween.Assembly/bin/DOTween46.dll.mdb and b/_DOTween.Assembly/bin/DOTween46.dll.mdb differ
diff --git a/_DOTween.Assembly/bin/DOTween46.xml b/_DOTween.Assembly/bin/DOTween46.xml
index 8ba34f3..3bdc0be 100644
--- a/_DOTween.Assembly/bin/DOTween46.xml
+++ b/_DOTween.Assembly/bin/DOTween46.xml
@@ -51,6 +51,12 @@
Also stores the image as the tween's target so it can be used for filtered operations
The end value to reach (0 to 1)The duration of the tween
+
+ Tweens an Image's colors using the given gradient
+ (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener).
+ Also stores the image as the tween's target so it can be used for filtered operations
+ The gradient to useThe duration of the tween
+
Tweens an LayoutElement's flexibleWidth/Height to the given value.
Also stores the LayoutElement as the tween's target so it can be used for filtered operations
diff --git a/_DOTween.Assembly/bin/DOTween50.dll b/_DOTween.Assembly/bin/DOTween50.dll
index fbad7d4..76ad9dd 100644
Binary files a/_DOTween.Assembly/bin/DOTween50.dll and b/_DOTween.Assembly/bin/DOTween50.dll differ
diff --git a/_DOTween.Assembly/bin/DOTween50.dll.mdb b/_DOTween.Assembly/bin/DOTween50.dll.mdb
index 14d4a95..8344d75 100644
Binary files a/_DOTween.Assembly/bin/DOTween50.dll.mdb and b/_DOTween.Assembly/bin/DOTween50.dll.mdb differ
diff --git a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll
index 7cf53dd..d510d3b 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 f5453c5..7621b28 100644
Binary files a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb and b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb differ