1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2026-02-04 14:24:55 +08:00

Implemented Vector2/3/4Surrogate which works also on Win8.1

This commit is contained in:
Daniele Giardini 2015-04-15 02:01:51 +02:00
parent eb74216d6a
commit 3382ddb04e
73 changed files with 414 additions and 147 deletions

1
.gitignore vendored
View File

@ -22,3 +22,4 @@ ExternalPluginsTestsAndExamples*
*.Unity*/Assets/Console*Pro* *.Unity*/Assets/Console*Pro*
*.Unity*/Assets/Text*Mesh*Pro* *.Unity*/Assets/Text*Mesh*Pro*
*HOPoolOperator* *HOPoolOperator*
zz builds

View File

@ -35,6 +35,12 @@
<member name="F:DG.Tweening.PathMode.Sidescroller2D"> <member name="F:DG.Tweening.PathMode.Sidescroller2D">
<summary>2D side-scroller path</summary> <summary>2D side-scroller path</summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector2Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.TweenType"> <member name="T:DG.Tweening.TweenType">
<summary> <summary>
Used internally Used internally
@ -532,29 +538,29 @@
<summary>Options for float tweens</summary> <summary>Options for float tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector2 tweens</summary> <summary>Options for Vector2 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector2 tweens</summary> <summary>Options for Vector2 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector3 tweens</summary> <summary>Options for Vector3 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector3 tweens</summary> <summary>Options for Vector3 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector4,UnityEngine.Vector4,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector4 tweens</summary> <summary>Options for Vector4 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector4,UnityEngine.Vector4,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector4 tweens</summary> <summary>Options for Vector4 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
@ -1304,6 +1310,12 @@
and returns the total number of tweens involved. and returns the total number of tweens involved.
</summary> </summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector3Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.PathType"> <member name="T:DG.Tweening.PathType">
<summary> <summary>
Type of path to use with DOPath tweens Type of path to use with DOPath tweens
@ -1484,7 +1496,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector2},DG.Tweening.Core.DOSetter{UnityEngine.Vector2},UnityEngine.Vector2,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector2Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector2Surrogate},UnityEngine.Vector2,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1492,7 +1504,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector3},DG.Tweening.Core.DOSetter{UnityEngine.Vector3},UnityEngine.Vector3,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},UnityEngine.Vector3,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1500,7 +1512,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector4},DG.Tweening.Core.DOSetter{UnityEngine.Vector4},UnityEngine.Vector4,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector4Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector4Surrogate},UnityEngine.Vector4,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1551,7 +1563,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.ToAxis(DG.Tweening.Core.DOGetter{UnityEngine.Vector3},DG.Tweening.Core.DOSetter{UnityEngine.Vector3},System.Single,System.Single,DG.Tweening.AxisConstraint)"> <member name="M:DG.Tweening.DOTween.ToAxis(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},System.Single,System.Single,DG.Tweening.AxisConstraint)">
<summary>Tweens only one axis of a Vector3 to the given value using default plugins.</summary> <summary>Tweens only one axis of a Vector3 to the given value using default plugins.</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1821,6 +1833,12 @@
<summary>Continuously increments the tween at the end of each loop cycle (A to B, B to B+(A-B), and so on), thus always moving "onward". <summary>Continuously increments the tween at the end of each loop cycle (A to B, B to B+(A-B), and so on), thus always moving "onward".
<para>In case of String tweens works only if the tween is set as relative</para></summary> <para>In case of String tweens works only if the tween is set as relative</para></summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector4Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.Tweener"> <member name="T:DG.Tweening.Tweener">
<summary> <summary>
Animates a single value Animates a single value

View File

@ -35,6 +35,12 @@
<member name="F:DG.Tweening.PathMode.Sidescroller2D"> <member name="F:DG.Tweening.PathMode.Sidescroller2D">
<summary>2D side-scroller path</summary> <summary>2D side-scroller path</summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector2Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.TweenType"> <member name="T:DG.Tweening.TweenType">
<summary> <summary>
Used internally Used internally
@ -532,29 +538,29 @@
<summary>Options for float tweens</summary> <summary>Options for float tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector2 tweens</summary> <summary>Options for Vector2 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector2 tweens</summary> <summary>Options for Vector2 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector3 tweens</summary> <summary>Options for Vector3 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector3 tweens</summary> <summary>Options for Vector3 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector4,UnityEngine.Vector4,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector4 tweens</summary> <summary>Options for Vector4 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector4,UnityEngine.Vector4,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector4 tweens</summary> <summary>Options for Vector4 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
@ -1304,6 +1310,12 @@
and returns the total number of tweens involved. and returns the total number of tweens involved.
</summary> </summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector3Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.PathType"> <member name="T:DG.Tweening.PathType">
<summary> <summary>
Type of path to use with DOPath tweens Type of path to use with DOPath tweens
@ -1484,7 +1496,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector2},DG.Tweening.Core.DOSetter{UnityEngine.Vector2},UnityEngine.Vector2,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector2Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector2Surrogate},UnityEngine.Vector2,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1492,7 +1504,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector3},DG.Tweening.Core.DOSetter{UnityEngine.Vector3},UnityEngine.Vector3,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},UnityEngine.Vector3,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1500,7 +1512,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector4},DG.Tweening.Core.DOSetter{UnityEngine.Vector4},UnityEngine.Vector4,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector4Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector4Surrogate},UnityEngine.Vector4,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1551,7 +1563,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.ToAxis(DG.Tweening.Core.DOGetter{UnityEngine.Vector3},DG.Tweening.Core.DOSetter{UnityEngine.Vector3},System.Single,System.Single,DG.Tweening.AxisConstraint)"> <member name="M:DG.Tweening.DOTween.ToAxis(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},System.Single,System.Single,DG.Tweening.AxisConstraint)">
<summary>Tweens only one axis of a Vector3 to the given value using default plugins.</summary> <summary>Tweens only one axis of a Vector3 to the given value using default plugins.</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1821,6 +1833,12 @@
<summary>Continuously increments the tween at the end of each loop cycle (A to B, B to B+(A-B), and so on), thus always moving "onward". <summary>Continuously increments the tween at the end of each loop cycle (A to B, B to B+(A-B), and so on), thus always moving "onward".
<para>In case of String tweens works only if the tween is set as relative</para></summary> <para>In case of String tweens works only if the tween is set as relative</para></summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector4Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.Tweener"> <member name="T:DG.Tweening.Tweener">
<summary> <summary>
Animates a single value Animates a single value

View File

@ -35,6 +35,12 @@
<member name="F:DG.Tweening.PathMode.Sidescroller2D"> <member name="F:DG.Tweening.PathMode.Sidescroller2D">
<summary>2D side-scroller path</summary> <summary>2D side-scroller path</summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector2Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.TweenType"> <member name="T:DG.Tweening.TweenType">
<summary> <summary>
Used internally Used internally
@ -532,29 +538,29 @@
<summary>Options for float tweens</summary> <summary>Options for float tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector2 tweens</summary> <summary>Options for Vector2 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector2 tweens</summary> <summary>Options for Vector2 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector3 tweens</summary> <summary>Options for Vector3 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector3 tweens</summary> <summary>Options for Vector3 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector4,UnityEngine.Vector4,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector4 tweens</summary> <summary>Options for Vector4 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector4,UnityEngine.Vector4,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector4 tweens</summary> <summary>Options for Vector4 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
@ -1304,6 +1310,12 @@
and returns the total number of tweens involved. and returns the total number of tweens involved.
</summary> </summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector3Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.PathType"> <member name="T:DG.Tweening.PathType">
<summary> <summary>
Type of path to use with DOPath tweens Type of path to use with DOPath tweens
@ -1484,7 +1496,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector2},DG.Tweening.Core.DOSetter{UnityEngine.Vector2},UnityEngine.Vector2,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector2Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector2Surrogate},UnityEngine.Vector2,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1492,7 +1504,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector3},DG.Tweening.Core.DOSetter{UnityEngine.Vector3},UnityEngine.Vector3,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},UnityEngine.Vector3,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1500,7 +1512,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector4},DG.Tweening.Core.DOSetter{UnityEngine.Vector4},UnityEngine.Vector4,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector4Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector4Surrogate},UnityEngine.Vector4,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1551,7 +1563,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.ToAxis(DG.Tweening.Core.DOGetter{UnityEngine.Vector3},DG.Tweening.Core.DOSetter{UnityEngine.Vector3},System.Single,System.Single,DG.Tweening.AxisConstraint)"> <member name="M:DG.Tweening.DOTween.ToAxis(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},System.Single,System.Single,DG.Tweening.AxisConstraint)">
<summary>Tweens only one axis of a Vector3 to the given value using default plugins.</summary> <summary>Tweens only one axis of a Vector3 to the given value using default plugins.</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1821,6 +1833,12 @@
<summary>Continuously increments the tween at the end of each loop cycle (A to B, B to B+(A-B), and so on), thus always moving "onward". <summary>Continuously increments the tween at the end of each loop cycle (A to B, B to B+(A-B), and so on), thus always moving "onward".
<para>In case of String tweens works only if the tween is set as relative</para></summary> <para>In case of String tweens works only if the tween is set as relative</para></summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector4Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.Tweener"> <member name="T:DG.Tweening.Tweener">
<summary> <summary>
Animates a single value Animates a single value

View File

@ -1,7 +1,7 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 42c12149efdc035458bffa42058b9a04 guid: 42c12149efdc035458bffa42058b9a04
timeCreated: 1426681070 timeCreated: 1429055804
licenseType: Pro licenseType: Free
PluginImporter: PluginImporter:
serializedVersion: 1 serializedVersion: 1
iconMap: {} iconMap: {}

View File

@ -9,14 +9,7 @@ public class Temp : BrainBase
IEnumerator Start() IEnumerator Start()
{ {
target.DOMoveX(2, 3).OnComplete(()=> { yield return new WaitForSeconds(0.6f);
Debug.Log("call"); target.DORotate(new Vector3(0,0,20f), 3f).SetRelative();
target.GetComponent<TempMonoBehaviour>().Goco();
Debug.Log("after call");
});
yield return new WaitForSeconds(1);
target.gameObject.SetActive(false);
} }
} }

View File

@ -532,29 +532,29 @@
<summary>Options for float tweens</summary> <summary>Options for float tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector2 tweens</summary> <summary>Options for Vector2 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector2 tweens</summary> <summary>Options for Vector2 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector3 tweens</summary> <summary>Options for Vector3 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector3 tweens</summary> <summary>Options for Vector3 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector4,UnityEngine.Vector4,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector4 tweens</summary> <summary>Options for Vector4 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector4,UnityEngine.Vector4,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector4 tweens</summary> <summary>Options for Vector4 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
@ -918,6 +918,14 @@
Also stores the material as the tween's target so it can be used for filtered operations</summary> Also stores the material as the tween's target so it can be used for filtered operations</summary>
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param> <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
</member> </member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFade(UnityEngine.Material,System.Single,System.String,System.Single)">
<summary>Tweens a Material's alpha color to the given value
(will have no effect unless your material supports transparency).
Also stores the material as the tween's target so it can be used for filtered operations</summary>
<param name="endValue">The end value to reach</param>
<param name="property">The name of the material property to tween (like _Tint or _SpecColor)</param>
<param name="duration">The duration of the tween</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFloat(UnityEngine.Material,System.Single,System.String,System.Single)"> <member name="M:DG.Tweening.ShortcutExtensions.DOFloat(UnityEngine.Material,System.Single,System.String,System.Single)">
<summary>Tweens a Material's named float property to the given value. <summary>Tweens a Material's named float property to the given value.
Also stores the material as the tween's target so it can be used for filtered operations</summary> Also stores the material as the tween's target so it can be used for filtered operations</summary>
@ -1476,7 +1484,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector2},DG.Tweening.Core.DOSetter{UnityEngine.Vector2},UnityEngine.Vector2,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector2Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector2Surrogate},UnityEngine.Vector2,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1484,7 +1492,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector3},DG.Tweening.Core.DOSetter{UnityEngine.Vector3},UnityEngine.Vector3,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},UnityEngine.Vector3,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1492,7 +1500,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector4},DG.Tweening.Core.DOSetter{UnityEngine.Vector4},UnityEngine.Vector4,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector4Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector4Surrogate},UnityEngine.Vector4,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1543,7 +1551,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.ToAxis(DG.Tweening.Core.DOGetter{UnityEngine.Vector3},DG.Tweening.Core.DOSetter{UnityEngine.Vector3},System.Single,System.Single,DG.Tweening.AxisConstraint)"> <member name="M:DG.Tweening.DOTween.ToAxis(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},System.Single,System.Single,DG.Tweening.AxisConstraint)">
<summary>Tweens only one axis of a Vector3 to the given value using default plugins.</summary> <summary>Tweens only one axis of a Vector3 to the given value using default plugins.</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -2039,5 +2047,23 @@
Public only so custom shortcuts can access some of these methods Public only so custom shortcuts can access some of these methods
</summary> </summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector4Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.Core.Surrogates.Vector3Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.Core.Surrogates.Vector2Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
</members> </members>
</doc> </doc>

View File

@ -22,7 +22,7 @@ public class TestScene : MonoBehaviour
SampleFloatClass sampleFloatClass; SampleFloatClass sampleFloatClass;
SampleVector3Class sampleV3Class; SampleVector3Class sampleV3Class;
ISampleClass isampleClass; ISampleClass isampleClass;
Vector3Plugin dotweenV3Class; // Vector3Plugin dotweenV3Class;
ITweenPlugin idotweenClass; ITweenPlugin idotweenClass;
string testId; string testId;
@ -33,8 +33,8 @@ public class TestScene : MonoBehaviour
FloatTest(); FloatTest();
log += "\n"; log += "\n";
Vector3Test(); Vector3Test();
log += "\n"; // log += "\n";
DOTweenVector3Test(); // DOTweenVector3Test();
log += "\n\n<color=#00ff00>FIRST TEST ENDED</color>"; log += "\n\n<color=#00ff00>FIRST TEST ENDED</color>";
log += "\n\n<color=#00ff00>NOW WAITING 1 SECOND...</color>"; log += "\n\n<color=#00ff00>NOW WAITING 1 SECOND...</color>";
@ -53,72 +53,72 @@ public class TestScene : MonoBehaviour
// DOTween.To(()=>intToTween, x=> intToTween = x, 100, 4).OnUpdate(()=> text.text = intToTween.ToString()); // DOTween.To(()=>intToTween, x=> intToTween = x, 100, 4).OnUpdate(()=> text.text = intToTween.ToString());
} }
void DOTweenVector3Test() // void DOTweenVector3Test()
{ // {
testId = "DOVector3 Class AsCast:"; // testId = "DOVector3 Class AsCast:";
try { // try {
dotweenV3Class = new Vector3Plugin(); // dotweenV3Class = new Vector3Plugin();
log += string.Format("{0}{1} " + ((dotweenV3Class as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr); // log += string.Format("{0}{1} " + ((dotweenV3Class as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
} catch (Exception e) { // } catch (Exception e) {
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId); // log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
} // }
testId = "DOVector3 Class AsCast (object):"; // testId = "DOVector3 Class AsCast (object):";
try { // try {
dotweenV3Class = new Vector3Plugin(); // dotweenV3Class = new Vector3Plugin();
log += string.Format("{0}{1} " + (((object)dotweenV3Class as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr); // log += string.Format("{0}{1} " + (((object)dotweenV3Class as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
} catch (Exception e) { // } catch (Exception e) {
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId); // log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
} // }
testId = "DOVector3 Class PrefCast:"; // testId = "DOVector3 Class PrefCast:";
try { // try {
dotweenV3Class = new Vector3Plugin(); // dotweenV3Class = new Vector3Plugin();
log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)dotweenV3Class == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr); // log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)dotweenV3Class == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
} catch (Exception e) { // } catch (Exception e) {
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId); // log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
} // }
testId = "DOVector3 Class PrefCast (object):"; // testId = "DOVector3 Class PrefCast (object):";
try { // try {
dotweenV3Class = new Vector3Plugin(); // dotweenV3Class = new Vector3Plugin();
log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)((object)dotweenV3Class) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr); // log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)((object)dotweenV3Class) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
} catch (Exception e) { // } catch (Exception e) {
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId); // log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
} // }
testId = "DOVector3 Interface AsCast:"; // testId = "DOVector3 Interface AsCast:";
try { // try {
idotweenClass = new Vector3Plugin(); // idotweenClass = new Vector3Plugin();
log += string.Format("{0}{1} " + ((idotweenClass as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr); // log += string.Format("{0}{1} " + ((idotweenClass as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
} catch (Exception e) { // } catch (Exception e) {
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId); // log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
} // }
testId = "DOVector3 Interface AsCast (object):"; // testId = "DOVector3 Interface AsCast (object):";
try { // try {
idotweenClass = new Vector3Plugin(); // idotweenClass = new Vector3Plugin();
log += string.Format("{0}{1} " + (((object)idotweenClass as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr); // log += string.Format("{0}{1} " + (((object)idotweenClass as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
} catch (Exception e) { // } catch (Exception e) {
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId); // log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
} // }
testId = "DOVector3 Interface PrefCast:"; // testId = "DOVector3 Interface PrefCast:";
try { // try {
idotweenClass = new Vector3Plugin(); // idotweenClass = new Vector3Plugin();
log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)idotweenClass == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr); // log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)idotweenClass == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
} catch (Exception e) { // } catch (Exception e) {
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId); // log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
} // }
testId = "DOVector3 Interface PrefCast (object):"; // testId = "DOVector3 Interface PrefCast (object):";
try { // try {
idotweenClass = new Vector3Plugin(); // idotweenClass = new Vector3Plugin();
log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)((object)idotweenClass) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr); // log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)((object)idotweenClass) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
} catch (Exception e) { // } catch (Exception e) {
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId); // log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
} // }
} // }
void Vector3Test() void Vector3Test()
{ {

Binary file not shown.

View File

@ -47,9 +47,14 @@ namespace DG.Tweening.Core.Surrogates
#region Conversions #region Conversions
public static explicit operator Vector3(Vector2Surrogate v) public static implicit operator Vector2(Vector2Surrogate v)
{ {
return new Vector3(v.x, v.y); return new Vector2(v.x, v.y);
}
public static implicit operator Vector2Surrogate(Vector2 v)
{
return new Vector2Surrogate(v.x, v.y);
} }
#endregion #endregion

View File

@ -15,6 +15,10 @@ namespace DG.Tweening.Core.Surrogates
{ {
public float x, y, z; public float x, y, z;
public static Vector3Surrogate zero {
get { return new Vector3Surrogate(0, 0, 0); }
}
public float magnitude { public float magnitude {
get { return Mathf.Sqrt(x * x + y * y + z * z); } get { return Mathf.Sqrt(x * x + y * y + z * z); }
} }
@ -48,11 +52,16 @@ namespace DG.Tweening.Core.Surrogates
#region Conversions #region Conversions
public static explicit operator Vector3(Vector3Surrogate v) public static implicit operator Vector3(Vector3Surrogate v)
{ {
return new Vector3(v.x, v.y, v.z); return new Vector3(v.x, v.y, v.z);
} }
public static implicit operator Vector3Surrogate(Vector3 v)
{
return new Vector3Surrogate(v.x, v.y, v.z);
}
#endregion #endregion
} }
} }

View File

@ -87,21 +87,26 @@ namespace DG.Tweening.Core.Surrogates
#region Conversions #region Conversions
// public static explicit operator Vector2(Vector4Surrogate v) // public static implicit operator Vector2(Vector4Surrogate v)
// { // {
// return new Vector2(v.x, v.y); // return new Vector2(v.x, v.y);
// } // }
// //
// public static explicit operator Vector3(Vector4Surrogate v) // public static implicit operator Vector3(Vector4Surrogate v)
// { // {
// return new Vector3(v.x, v.y, v.z); // return new Vector3(v.x, v.y, v.z);
// } // }
public static explicit operator Vector4(Vector4Surrogate v) public static implicit operator Vector4(Vector4Surrogate v)
{ {
return new Vector4(v.x, v.y, v.z, v.w); return new Vector4(v.x, v.y, v.z, v.w);
} }
public static implicit operator Vector4Surrogate(Vector4 v)
{
return new Vector4Surrogate(v.x, v.y, v.z, v.w);
}
#endregion #endregion
} }
} }

View File

@ -4,6 +4,9 @@
// License Copyright (c) Daniele Giardini. // License Copyright (c) Daniele Giardini.
// This work is subject to the terms at http://dotween.demigiant.com/license.php // This work is subject to the terms at http://dotween.demigiant.com/license.php
#if WP81
using DG.Tweening.Core.Surrogates;
#endif
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
@ -21,7 +24,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.0.490"; public static readonly string Version = "1.0.510";
/////////////////////////////////////////////// ///////////////////////////////////////////////
// Options //////////////////////////////////// // Options ////////////////////////////////////
@ -304,24 +307,39 @@ namespace DG.Tweening
/// <param name="setter">A setter for the field or property to tween /// <param name="setter">A setter for the field or property to tween
/// <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> /// <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
/// <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> /// <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
#if WP81
public static TweenerCore<Vector2Surrogate, Vector2Surrogate, VectorOptions> To(DOGetter<Vector2Surrogate> getter, DOSetter<Vector2Surrogate> setter, Vector2 endValue, float duration)
{ return ApplyTo<Vector2Surrogate, Vector2Surrogate, VectorOptions>(getter, setter, endValue, duration); }
#else
public static TweenerCore<Vector2, Vector2, VectorOptions> To(DOGetter<Vector2> getter, DOSetter<Vector2> setter, Vector2 endValue, float duration) public static TweenerCore<Vector2, Vector2, VectorOptions> To(DOGetter<Vector2> getter, DOSetter<Vector2> setter, Vector2 endValue, float duration)
{ return ApplyTo<Vector2, Vector2, VectorOptions>(getter, setter, endValue, duration); } { return ApplyTo<Vector2, Vector2, VectorOptions>(getter, setter, endValue, duration); }
#endif
/// <summary>Tweens a property or field to the given value using default plugins</summary> /// <summary>Tweens a property or field to the given value using default plugins</summary>
/// <param name="getter">A getter for the field or property to tween. /// <param name="getter">A getter for the field or property to tween.
/// <para>Example usage with lambda:</para><code>()=> myProperty</code></param> /// <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
/// <param name="setter">A setter for the field or property to tween /// <param name="setter">A setter for the field or property to tween
/// <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> /// <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
/// <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> /// <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
#if WP81
public static TweenerCore<Vector3Surrogate, Vector3Surrogate, VectorOptions> To(DOGetter<Vector3Surrogate> getter, DOSetter<Vector3Surrogate> setter, Vector3 endValue, float duration)
{ return ApplyTo<Vector3Surrogate, Vector3Surrogate, VectorOptions>(getter, setter, endValue, duration); }
#else
public static TweenerCore<Vector3, Vector3, VectorOptions> To(DOGetter<Vector3> getter, DOSetter<Vector3> setter, Vector3 endValue, float duration) public static TweenerCore<Vector3, Vector3, VectorOptions> To(DOGetter<Vector3> getter, DOSetter<Vector3> setter, Vector3 endValue, float duration)
{ return ApplyTo<Vector3, Vector3, VectorOptions>(getter, setter, endValue, duration); } { return ApplyTo<Vector3, Vector3, VectorOptions>(getter, setter, endValue, duration); }
#endif
/// <summary>Tweens a property or field to the given value using default plugins</summary> /// <summary>Tweens a property or field to the given value using default plugins</summary>
/// <param name="getter">A getter for the field or property to tween. /// <param name="getter">A getter for the field or property to tween.
/// <para>Example usage with lambda:</para><code>()=> myProperty</code></param> /// <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
/// <param name="setter">A setter for the field or property to tween /// <param name="setter">A setter for the field or property to tween
/// <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> /// <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
/// <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> /// <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
#if WP81
public static TweenerCore<Vector4Surrogate, Vector4Surrogate, VectorOptions> To(DOGetter<Vector4Surrogate> getter, DOSetter<Vector4Surrogate> setter, Vector4 endValue, float duration)
{ return ApplyTo<Vector4Surrogate, Vector4Surrogate, VectorOptions>(getter, setter, endValue, duration); }
#else
public static TweenerCore<Vector4, Vector4, VectorOptions> To(DOGetter<Vector4> getter, DOSetter<Vector4> setter, Vector4 endValue, float duration) public static TweenerCore<Vector4, Vector4, VectorOptions> To(DOGetter<Vector4> getter, DOSetter<Vector4> setter, Vector4 endValue, float duration)
{ return ApplyTo<Vector4, Vector4, VectorOptions>(getter, setter, endValue, duration); } { return ApplyTo<Vector4, Vector4, VectorOptions>(getter, setter, endValue, duration); }
#endif
/// <summary>Tweens a property or field to the given value using default plugins</summary> /// <summary>Tweens a property or field to the given value using default plugins</summary>
/// <param name="getter">A getter for the field or property to tween. /// <param name="getter">A getter for the field or property to tween.
/// <para>Example usage with lambda:</para><code>()=> myProperty</code></param> /// <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -377,12 +395,21 @@ namespace DG.Tweening
/// <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> /// <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
/// <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> /// <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
/// <param name="axisConstraint">The axis to tween</param> /// <param name="axisConstraint">The axis to tween</param>
#if WP81
public static TweenerCore<Vector3Surrogate, Vector3Surrogate, VectorOptions> ToAxis(DOGetter<Vector3Surrogate> getter, DOSetter<Vector3Surrogate> setter, float endValue, float duration, AxisConstraint axisConstraint = AxisConstraint.X)
{
TweenerCore<Vector3Surrogate, Vector3Surrogate, VectorOptions> t = ApplyTo<Vector3Surrogate, Vector3Surrogate, VectorOptions>(getter, setter, new Vector3Surrogate(endValue, endValue, endValue), duration);
t.plugOptions.axisConstraint = axisConstraint;
return t;
}
#else
public static TweenerCore<Vector3, Vector3, VectorOptions> ToAxis(DOGetter<Vector3> getter, DOSetter<Vector3> setter, float endValue, float duration, AxisConstraint axisConstraint = AxisConstraint.X) public static TweenerCore<Vector3, Vector3, VectorOptions> ToAxis(DOGetter<Vector3> getter, DOSetter<Vector3> setter, float endValue, float duration, AxisConstraint axisConstraint = AxisConstraint.X)
{ {
TweenerCore<Vector3, Vector3, VectorOptions> t = ApplyTo<Vector3, Vector3, VectorOptions>(getter, setter, new Vector3(endValue, endValue, endValue), duration); TweenerCore<Vector3, Vector3, VectorOptions> t = ApplyTo<Vector3, Vector3, VectorOptions>(getter, setter, new Vector3(endValue, endValue, endValue), duration);
t.plugOptions.axisConstraint = axisConstraint; t.plugOptions.axisConstraint = axisConstraint;
return t; return t;
} }
#endif
/// <summary>Tweens only the alpha of a Color to the given value using default plugins</summary> /// <summary>Tweens only the alpha of a Color to the given value using default plugins</summary>
/// <param name="getter">A getter for the field or property to tween. /// <param name="getter">A getter for the field or property to tween.
/// <para>Example usage with lambda:</para><code>()=> myProperty</code></param> /// <para>Example usage with lambda:</para><code>()=> myProperty</code></param>

View File

@ -71,6 +71,8 @@
<Compile Include="Core\Enums\UpdateMode.cs" /> <Compile Include="Core\Enums\UpdateMode.cs" />
<Compile Include="Core\Extensions.cs" /> <Compile Include="Core\Extensions.cs" />
<Compile Include="Core\SequenceCallback.cs" /> <Compile Include="Core\SequenceCallback.cs" />
<Compile Include="Core\Surrogates\Vector2Surrogate.cs" />
<Compile Include="Core\Surrogates\Vector3Surrogate.cs" />
<Compile Include="Core\TweenManager.cs" /> <Compile Include="Core\TweenManager.cs" />
<Compile Include="Core\Utils.cs" /> <Compile Include="Core\Utils.cs" />
<Compile Include="Core\Surrogates\Vector4Surrogate.cs" /> <Compile Include="Core\Surrogates\Vector4Surrogate.cs" />
@ -88,6 +90,7 @@
<Compile Include="Plugins\Options\QuaternionOptions.cs" /> <Compile Include="Plugins\Options\QuaternionOptions.cs" />
<Compile Include="Plugins\Options\Vector3ArrayOptions.cs" /> <Compile Include="Plugins\Options\Vector3ArrayOptions.cs" />
<Compile Include="Plugins\UlongPlugin.cs" /> <Compile Include="Plugins\UlongPlugin.cs" />
<Compile Include="Plugins\Vector2SurrogatePlugin.cs" />
<Compile Include="Plugins\Vector3ArrayPlugin.cs" /> <Compile Include="Plugins\Vector3ArrayPlugin.cs" />
<Compile Include="Plugins\Core\ITPlugin.cs" /> <Compile Include="Plugins\Core\ITPlugin.cs" />
<Compile Include="Plugins\Core\SpecialPluginsUtils.cs" /> <Compile Include="Plugins\Core\SpecialPluginsUtils.cs" />
@ -96,6 +99,7 @@
<Compile Include="Plugins\Core\PathCore\LinearDecoder.cs" /> <Compile Include="Plugins\Core\PathCore\LinearDecoder.cs" />
<Compile Include="Plugins\Core\PathCore\Path.cs" /> <Compile Include="Plugins\Core\PathCore\Path.cs" />
<Compile Include="Plugins\PathPlugin.cs" /> <Compile Include="Plugins\PathPlugin.cs" />
<Compile Include="Plugins\Vector3SurrogatePlugin.cs" />
<Compile Include="Plugins\Vector4SurrogatePlugin.cs" /> <Compile Include="Plugins\Vector4SurrogatePlugin.cs" />
<Compile Include="RotateMode.cs" /> <Compile Include="RotateMode.cs" />
<Compile Include="ScrambleMode.cs" /> <Compile Include="ScrambleMode.cs" />

View File

@ -4,10 +4,12 @@
// License Copyright (c) Daniele Giardini. // License Copyright (c) Daniele Giardini.
// This work is subject to the terms at http://dotween.demigiant.com/license.php // This work is subject to the terms at http://dotween.demigiant.com/license.php
#if WP81
using DG.Tweening.Core.Surrogates;
#endif
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using DG.Tweening.Core; using DG.Tweening.Core;
using DG.Tweening.Plugins.Options;
using UnityEngine; using UnityEngine;
namespace DG.Tweening.Plugins.Core namespace DG.Tweening.Plugins.Core
@ -43,7 +45,15 @@ namespace DG.Tweening.Plugins.Core
Type t1 = typeof(T1); Type t1 = typeof(T1);
Type t2 = typeof(T2); Type t2 = typeof(T2);
ITweenPlugin plugin = null; ITweenPlugin plugin = null;
#if WP81
if (t1 == typeof(Vector3Surrogate) && t1 == t2) {
if (_vector3Plugin == null) _vector3Plugin = new Vector3SurrogatePlugin();
plugin = _vector3Plugin;
} else if (t1 == typeof(Vector3) && t2 == typeof(Vector3[])) {
if (_vector3ArrayPlugin == null) _vector3ArrayPlugin = new Vector3ArrayPlugin();
plugin = _vector3ArrayPlugin;
}
#else
if (t1 == typeof(Vector3)) { if (t1 == typeof(Vector3)) {
if (t1 == t2) { if (t1 == t2) {
if (_vector3Plugin == null) _vector3Plugin = new Vector3Plugin(); if (_vector3Plugin == null) _vector3Plugin = new Vector3Plugin();
@ -52,16 +62,27 @@ namespace DG.Tweening.Plugins.Core
if (_vector3ArrayPlugin == null) _vector3ArrayPlugin = new Vector3ArrayPlugin(); if (_vector3ArrayPlugin == null) _vector3ArrayPlugin = new Vector3ArrayPlugin();
plugin = _vector3ArrayPlugin; plugin = _vector3ArrayPlugin;
} }
} else if (t1 == typeof(Quaternion)) { }
#endif
else if (t1 == typeof(Quaternion)) {
if (t2 == typeof(Quaternion)) Debugger.LogError("Quaternion tweens require a Vector3 endValue"); if (t2 == typeof(Quaternion)) Debugger.LogError("Quaternion tweens require a Vector3 endValue");
else { else {
if (_quaternionPlugin == null) _quaternionPlugin = new QuaternionPlugin(); if (_quaternionPlugin == null) _quaternionPlugin = new QuaternionPlugin();
plugin = _quaternionPlugin; plugin = _quaternionPlugin;
} }
} else if (t1 == typeof(Vector2)) { }
#if WP81
else if (t1 == typeof(Vector2Surrogate)) {
if (_vector2Plugin == null) _vector2Plugin = new Vector2SurrogatePlugin();
plugin = _vector2Plugin;
}
#else
else if (t1 == typeof(Vector2)) {
if (_vector2Plugin == null) _vector2Plugin = new Vector2Plugin(); if (_vector2Plugin == null) _vector2Plugin = new Vector2Plugin();
plugin = _vector2Plugin; plugin = _vector2Plugin;
} else if (t1 == typeof(float)) { }
#endif
else if (t1 == typeof(float)) {
if (_floatPlugin == null) _floatPlugin = new FloatPlugin(); if (_floatPlugin == null) _floatPlugin = new FloatPlugin();
plugin = _floatPlugin; plugin = _floatPlugin;
} else if (t1 == typeof(Color)) { } else if (t1 == typeof(Color)) {
@ -70,10 +91,19 @@ namespace DG.Tweening.Plugins.Core
} else if (t1 == typeof(int)) { } else if (t1 == typeof(int)) {
if (_intPlugin == null) _intPlugin = new IntPlugin(); if (_intPlugin == null) _intPlugin = new IntPlugin();
plugin = _intPlugin; plugin = _intPlugin;
} else if (t1 == typeof(Vector4)) { }
#if WP81
else if (t1 == typeof(Vector4Surrogate)) {
if (_vector4Plugin == null) _vector4Plugin = new Vector4SurrogatePlugin();
plugin = _vector4Plugin;
}
#else
else if (t1 == typeof(Vector4)) {
if (_vector4Plugin == null) _vector4Plugin = new Vector4Plugin(); if (_vector4Plugin == null) _vector4Plugin = new Vector4Plugin();
plugin = _vector4Plugin; plugin = _vector4Plugin;
} else if (t1 == typeof(Rect)) { }
#endif
else if (t1 == typeof(Rect)) {
if (_rectPlugin == null) _rectPlugin = new RectPlugin(); if (_rectPlugin == null) _rectPlugin = new RectPlugin();
plugin = _rectPlugin; plugin = _rectPlugin;
} else if (t1 == typeof(RectOffset)) { } else if (t1 == typeof(RectOffset)) {

View File

@ -1,4 +1,5 @@
// Author: Daniele Giardini - http://www.demigiant.com #if !WP81
// Author: Daniele Giardini - http://www.demigiant.com
// Created: 2014/07/10 16:51 // Created: 2014/07/10 16:51
// //
// License Copyright (c) Daniele Giardini. // License Copyright (c) Daniele Giardini.
@ -107,3 +108,4 @@ namespace DG.Tweening.Plugins
} }
} }
} }
#endif

View File

@ -1,4 +1,5 @@
// Author: Daniele Giardini - http://www.demigiant.com #if !WP81
// Author: Daniele Giardini - http://www.demigiant.com
// Created: 2014/05/06 19:35 // Created: 2014/05/06 19:35
// //
// License Copyright (c) Daniele Giardini. // License Copyright (c) Daniele Giardini.
@ -122,3 +123,4 @@ namespace DG.Tweening.Plugins
} }
} }
} }
#endif

View File

@ -1,4 +1,5 @@
// Author: Daniele Giardini - http://www.demigiant.com #if !WP81
// Author: Daniele Giardini - http://www.demigiant.com
// Created: 2014/07/10 16:53 // Created: 2014/07/10 16:53
// //
// License Copyright (c) Daniele Giardini. // License Copyright (c) Daniele Giardini.
@ -137,3 +138,4 @@ namespace DG.Tweening.Plugins
} }
} }
} }
#endif

View File

@ -4,6 +4,9 @@
// License Copyright (c) Daniele Giardini. // License Copyright (c) Daniele Giardini.
// This work is subject to the terms at http://dotween.demigiant.com/license.php // This work is subject to the terms at http://dotween.demigiant.com/license.php
#if WP81
using DG.Tweening.Core.Surrogates;
#endif
using System.Collections.Generic; using System.Collections.Generic;
using DG.Tweening.Core; using DG.Tweening.Core;
using DG.Tweening.Core.Enums; using DG.Tweening.Core.Enums;
@ -235,7 +238,11 @@ namespace DG.Tweening
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
public static Tweener DOMove(this Rigidbody target, Vector3 endValue, float duration, bool snapping = false) public static Tweener DOMove(this Rigidbody target, Vector3 endValue, float duration, bool snapping = false)
{ {
#if WP81
return DOTween.To(() => target.position, x=> target.MovePosition(x), endValue, duration)
#else
return DOTween.To(() => target.position, target.MovePosition, endValue, duration) return DOTween.To(() => target.position, target.MovePosition, endValue, duration)
#endif
.SetOptions(snapping).SetTarget(target); .SetOptions(snapping).SetTarget(target);
} }
@ -245,7 +252,11 @@ namespace DG.Tweening
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
public static Tweener DOMoveX(this Rigidbody target, float endValue, float duration, bool snapping = false) public static Tweener DOMoveX(this Rigidbody target, float endValue, float duration, bool snapping = false)
{ {
#if WP81
return DOTween.To(() => target.position, x => target.MovePosition(x), new Vector3(endValue, 0, 0), duration)
#else
return DOTween.To(() => target.position, target.MovePosition, new Vector3(endValue, 0, 0), duration) return DOTween.To(() => target.position, target.MovePosition, new Vector3(endValue, 0, 0), duration)
#endif
.SetOptions(AxisConstraint.X, snapping).SetTarget(target); .SetOptions(AxisConstraint.X, snapping).SetTarget(target);
} }
@ -255,7 +266,11 @@ namespace DG.Tweening
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
public static Tweener DOMoveY(this Rigidbody target, float endValue, float duration, bool snapping = false) public static Tweener DOMoveY(this Rigidbody target, float endValue, float duration, bool snapping = false)
{ {
#if WP81
return DOTween.To(() => target.position, x => target.MovePosition(x), new Vector3(0, endValue, 0), duration)
#else
return DOTween.To(() => target.position, target.MovePosition, new Vector3(0, endValue, 0), duration) return DOTween.To(() => target.position, target.MovePosition, new Vector3(0, endValue, 0), duration)
#endif
.SetOptions(AxisConstraint.Y, snapping).SetTarget(target); .SetOptions(AxisConstraint.Y, snapping).SetTarget(target);
} }
@ -265,7 +280,11 @@ namespace DG.Tweening
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
public static Tweener DOMoveZ(this Rigidbody target, float endValue, float duration, bool snapping = false) public static Tweener DOMoveZ(this Rigidbody target, float endValue, float duration, bool snapping = false)
{ {
#if WP81
return DOTween.To(() => target.position, x => target.MovePosition(x), new Vector3(0, 0, endValue), duration)
#else
return DOTween.To(() => target.position, target.MovePosition, new Vector3(0, 0, endValue), duration) return DOTween.To(() => target.position, target.MovePosition, new Vector3(0, 0, endValue), duration)
#endif
.SetOptions(AxisConstraint.Z, snapping).SetTarget(target); .SetOptions(AxisConstraint.Z, snapping).SetTarget(target);
} }
@ -674,12 +693,21 @@ namespace DG.Tweening
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
public static Tweener DOBlendableMoveBy(this Transform target, Vector3 byValue, float duration, bool snapping = false) public static Tweener DOBlendableMoveBy(this Transform target, Vector3 byValue, float duration, bool snapping = false)
{ {
#if WP81
Vector3Surrogate to = Vector3Surrogate.zero;
return DOTween.To(() => to, x => {
Vector3 diff = x - to;
to = x;
target.position += diff;
}, byValue, duration)
#else
Vector3 to = Vector3.zero; Vector3 to = Vector3.zero;
return DOTween.To(() => to, x => { return DOTween.To(() => to, x => {
Vector3 diff = x - to; Vector3 diff = x - to;
to = x; to = x;
target.position += diff; target.position += diff;
}, byValue, duration) }, byValue, duration)
#endif
.Blendable().SetOptions(snapping).SetTarget(target); .Blendable().SetOptions(snapping).SetTarget(target);
} }
@ -691,12 +719,21 @@ namespace DG.Tweening
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
public static Tweener DOBlendableLocalMoveBy(this Transform target, Vector3 byValue, float duration, bool snapping = false) public static Tweener DOBlendableLocalMoveBy(this Transform target, Vector3 byValue, float duration, bool snapping = false)
{ {
#if WP81
Vector3Surrogate to = Vector3Surrogate.zero;
return DOTween.To(() => to, x => {
Vector3 diff = x - to;
to = x;
target.localPosition += diff;
}, byValue, duration)
#else
Vector3 to = Vector3.zero; Vector3 to = Vector3.zero;
return DOTween.To(() => to, x => { return DOTween.To(() => to, x => {
Vector3 diff = x - to; Vector3 diff = x - to;
to = x; to = x;
target.localPosition += diff; target.localPosition += diff;
}, byValue, duration) }, byValue, duration)
#endif
.Blendable().SetOptions(snapping).SetTarget(target); .Blendable().SetOptions(snapping).SetTarget(target);
} }
@ -745,12 +782,21 @@ namespace DG.Tweening
/// <param name="byValue">The value to tween by</param><param name="duration">The duration of the tween</param> /// <param name="byValue">The value to tween by</param><param name="duration">The duration of the tween</param>
public static Tweener DOBlendableScaleBy(this Transform target, Vector3 byValue, float duration) public static Tweener DOBlendableScaleBy(this Transform target, Vector3 byValue, float duration)
{ {
#if WP81
Vector3Surrogate to = Vector3Surrogate.zero;
return DOTween.To(() => to, x => {
Vector3 diff = x - to;
to = x;
target.localScale += diff;
}, byValue, duration)
#else
Vector3 to = Vector3.zero; Vector3 to = Vector3.zero;
return DOTween.To(() => to, x => { return DOTween.To(() => to, x => {
Vector3 diff = x - to; Vector3 diff = x - to;
to = x; to = x;
target.localScale += diff; target.localScale += diff;
}, byValue, duration) }, byValue, duration)
#endif
.Blendable().SetTarget(target); .Blendable().SetTarget(target);
} }

View File

@ -4,6 +4,9 @@
// License Copyright (c) Daniele Giardini. // License Copyright (c) Daniele Giardini.
// This work is subject to the terms at http://dotween.demigiant.com/license.php // This work is subject to the terms at http://dotween.demigiant.com/license.php
#if WP81
using DG.Tweening.Core.Surrogates;
#endif
using DG.Tweening.Core; using DG.Tweening.Core;
using DG.Tweening.Core.Easing; using DG.Tweening.Core.Easing;
using DG.Tweening.Plugins; using DG.Tweening.Plugins;
@ -581,7 +584,11 @@ namespace DG.Tweening
/// <summary>Options for Vector2 tweens</summary> /// <summary>Options for Vector2 tweens</summary>
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
#if WP81
public static Tweener SetOptions(this TweenerCore<Vector2Surrogate, Vector2Surrogate, VectorOptions> t, bool snapping)
#else
public static Tweener SetOptions(this TweenerCore<Vector2, Vector2, VectorOptions> t, bool snapping) public static Tweener SetOptions(this TweenerCore<Vector2, Vector2, VectorOptions> t, bool snapping)
#endif
{ {
if (t == null || !t.active) return t; if (t == null || !t.active) return t;
@ -591,7 +598,11 @@ namespace DG.Tweening
/// <summary>Options for Vector2 tweens</summary> /// <summary>Options for Vector2 tweens</summary>
/// <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> /// <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
#if WP81
public static Tweener SetOptions(this TweenerCore<Vector2Surrogate, Vector2Surrogate, VectorOptions> t, AxisConstraint axisConstraint, bool snapping = false)
#else
public static Tweener SetOptions(this TweenerCore<Vector2, Vector2, VectorOptions> t, AxisConstraint axisConstraint, bool snapping = false) public static Tweener SetOptions(this TweenerCore<Vector2, Vector2, VectorOptions> t, AxisConstraint axisConstraint, bool snapping = false)
#endif
{ {
if (t == null || !t.active) return t; if (t == null || !t.active) return t;
@ -602,7 +613,11 @@ namespace DG.Tweening
/// <summary>Options for Vector3 tweens</summary> /// <summary>Options for Vector3 tweens</summary>
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
#if WP81
public static Tweener SetOptions(this TweenerCore<Vector3Surrogate, Vector3Surrogate, VectorOptions> t, bool snapping)
#else
public static Tweener SetOptions(this TweenerCore<Vector3, Vector3, VectorOptions> t, bool snapping) public static Tweener SetOptions(this TweenerCore<Vector3, Vector3, VectorOptions> t, bool snapping)
#endif
{ {
if (t == null || !t.active) return t; if (t == null || !t.active) return t;
@ -612,7 +627,11 @@ namespace DG.Tweening
/// <summary>Options for Vector3 tweens</summary> /// <summary>Options for Vector3 tweens</summary>
/// <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> /// <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
#if WP81
public static Tweener SetOptions(this TweenerCore<Vector3Surrogate, Vector3Surrogate, VectorOptions> t, AxisConstraint axisConstraint, bool snapping = false)
#else
public static Tweener SetOptions(this TweenerCore<Vector3, Vector3, VectorOptions> t, AxisConstraint axisConstraint, bool snapping = false) public static Tweener SetOptions(this TweenerCore<Vector3, Vector3, VectorOptions> t, AxisConstraint axisConstraint, bool snapping = false)
#endif
{ {
if (t == null || !t.active) return t; if (t == null || !t.active) return t;
@ -623,7 +642,11 @@ namespace DG.Tweening
/// <summary>Options for Vector4 tweens</summary> /// <summary>Options for Vector4 tweens</summary>
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
#if WP81
public static Tweener SetOptions(this TweenerCore<Vector4Surrogate, Vector4Surrogate, VectorOptions> t, bool snapping)
#else
public static Tweener SetOptions(this TweenerCore<Vector4, Vector4, VectorOptions> t, bool snapping) public static Tweener SetOptions(this TweenerCore<Vector4, Vector4, VectorOptions> t, bool snapping)
#endif
{ {
if (t == null || !t.active) return t; if (t == null || !t.active) return t;
@ -633,7 +656,11 @@ namespace DG.Tweening
/// <summary>Options for Vector4 tweens</summary> /// <summary>Options for Vector4 tweens</summary>
/// <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> /// <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
#if WP81
public static Tweener SetOptions(this TweenerCore<Vector4Surrogate, Vector4Surrogate, VectorOptions> t, AxisConstraint axisConstraint, bool snapping = false)
#else
public static Tweener SetOptions(this TweenerCore<Vector4, Vector4, VectorOptions> t, AxisConstraint axisConstraint, bool snapping = false) public static Tweener SetOptions(this TweenerCore<Vector4, Vector4, VectorOptions> t, AxisConstraint axisConstraint, bool snapping = false)
#endif
{ {
if (t == null || !t.active) return t; if (t == null || !t.active) return t;

View File

@ -78,7 +78,7 @@ namespace DG.Tweening
if (t.tweenPlugin == null) t.tweenPlugin = PluginsManager.GetDefaultPlugin<T1, T2, TPlugOptions>(); if (t.tweenPlugin == null) t.tweenPlugin = PluginsManager.GetDefaultPlugin<T1, T2, TPlugOptions>();
if (t.tweenPlugin == null) { if (t.tweenPlugin == null) {
// No suitable plugin found. Kill // No suitable plugin found. Kill
Debugger.LogError("No suitable plugin found for this type"); Debugger.LogError(string.Format("No suitable plugin found for this type (<{0}, {1}, {2}>)", typeof(T1), typeof(T2), typeof(TPlugOptions)));
return false; return false;
} }
// WP8.1 fix tries // WP8.1 fix tries

View File

@ -36,7 +36,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'WP81|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'WP81|AnyCPU'">
<OutputPath>..\bin\</OutputPath> <OutputPath>..\bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE;WP81</DefineConstants>
<DocumentationFile>..\bin\DOTween43.xml</DocumentationFile> <DocumentationFile>..\bin\DOTween43.xml</DocumentationFile>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<NoWarn>1573</NoWarn> <NoWarn>1573</NoWarn>

View File

@ -46,7 +46,11 @@ namespace DG.Tweening
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
public static Tweener DOMove(this Rigidbody2D target, Vector2 endValue, float duration, bool snapping = false) public static Tweener DOMove(this Rigidbody2D target, Vector2 endValue, float duration, bool snapping = false)
{ {
#if WP81
return DOTween.To(() => target.position, x=> target.MovePosition(x), endValue, duration)
#else
return DOTween.To(() => target.position, target.MovePosition, endValue, duration) return DOTween.To(() => target.position, target.MovePosition, endValue, duration)
#endif
.SetOptions(snapping).SetTarget(target); .SetOptions(snapping).SetTarget(target);
} }
@ -56,7 +60,11 @@ namespace DG.Tweening
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
public static Tweener DOMoveX(this Rigidbody2D target, float endValue, float duration, bool snapping = false) public static Tweener DOMoveX(this Rigidbody2D target, float endValue, float duration, bool snapping = false)
{ {
#if WP81
return DOTween.To(() => target.position, x => target.MovePosition(x), new Vector2(endValue, 0), duration)
#else
return DOTween.To(() => target.position, target.MovePosition, new Vector2(endValue, 0), duration) return DOTween.To(() => target.position, target.MovePosition, new Vector2(endValue, 0), duration)
#endif
.SetOptions(AxisConstraint.X, snapping).SetTarget(target); .SetOptions(AxisConstraint.X, snapping).SetTarget(target);
} }
@ -66,7 +74,11 @@ namespace DG.Tweening
/// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> /// <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
public static Tweener DOMoveY(this Rigidbody2D target, float endValue, float duration, bool snapping = false) public static Tweener DOMoveY(this Rigidbody2D target, float endValue, float duration, bool snapping = false)
{ {
#if WP81
return DOTween.To(() => target.position, x => target.MovePosition(x), new Vector2(0, endValue), duration)
#else
return DOTween.To(() => target.position, target.MovePosition, new Vector2(0, endValue), duration) return DOTween.To(() => target.position, target.MovePosition, new Vector2(0, endValue), duration)
#endif
.SetOptions(AxisConstraint.Y, snapping).SetTarget(target); .SetOptions(AxisConstraint.Y, snapping).SetTarget(target);
} }

View File

@ -36,7 +36,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'WP81|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'WP81|AnyCPU'">
<OutputPath>..\bin\Editor\</OutputPath> <OutputPath>..\bin\Editor\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE;WP81</DefineConstants>
<DocumentationFile>..\bin\Editor\DOTweenEditor.XML</DocumentationFile> <DocumentationFile>..\bin\Editor\DOTweenEditor.XML</DocumentationFile>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<NoWarn>1591</NoWarn> <NoWarn>1591</NoWarn>

View File

@ -80,7 +80,11 @@ namespace DG.DOTweenEditor
void OnEnable() void OnEnable()
{ {
#if WP81
_innerTitle = "DOTween v" + DOTween.Version + (DOTween.isDebugBuild ? " [Debug WP8.1 build]" : " [Release WP8.1 build]");
#else
_innerTitle = "DOTween v" + DOTween.Version + (DOTween.isDebugBuild ? " [Debug build]" : " [Release build]"); _innerTitle = "DOTween v" + DOTween.Version + (DOTween.isDebugBuild ? " [Debug build]" : " [Release build]");
#endif
if (EditorUtils.hasPro) _innerTitle += "\nDOTweenPro v" + EditorUtils.proVersion; if (EditorUtils.hasPro) _innerTitle += "\nDOTweenPro v" + EditorUtils.proVersion;
else _innerTitle += "\nDOTweenPro not installed"; else _innerTitle += "\nDOTweenPro not installed";

View File

@ -35,6 +35,12 @@
<member name="F:DG.Tweening.PathMode.Sidescroller2D"> <member name="F:DG.Tweening.PathMode.Sidescroller2D">
<summary>2D side-scroller path</summary> <summary>2D side-scroller path</summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector2Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.TweenType"> <member name="T:DG.Tweening.TweenType">
<summary> <summary>
Used internally Used internally
@ -532,29 +538,29 @@
<summary>Options for float tweens</summary> <summary>Options for float tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector2 tweens</summary> <summary>Options for Vector2 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Core.Surrogates.Vector2Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector2 tweens</summary> <summary>Options for Vector2 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector3 tweens</summary> <summary>Options for Vector3 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Core.Surrogates.Vector3Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector3 tweens</summary> <summary>Options for Vector3 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector4,UnityEngine.Vector4,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Plugins.Options.VectorOptions},System.Boolean)">
<summary>Options for Vector4 tweens</summary> <summary>Options for Vector4 tweens</summary>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
</member> </member>
<member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{UnityEngine.Vector4,UnityEngine.Vector4,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)"> <member name="M:DG.Tweening.TweenSettingsExtensions.SetOptions(DG.Tweening.Core.TweenerCore{DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Core.Surrogates.Vector4Surrogate,DG.Tweening.Plugins.Options.VectorOptions},DG.Tweening.AxisConstraint,System.Boolean)">
<summary>Options for Vector4 tweens</summary> <summary>Options for Vector4 tweens</summary>
<param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param> <param name="axisConstraint">Selecting an axis will tween the vector only on that axis, leaving the others untouched</param>
<param name="snapping">If TRUE the tween will smoothly snap all values to integers</param> <param name="snapping">If TRUE the tween will smoothly snap all values to integers</param>
@ -1304,6 +1310,12 @@
and returns the total number of tweens involved. and returns the total number of tweens involved.
</summary> </summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector3Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.PathType"> <member name="T:DG.Tweening.PathType">
<summary> <summary>
Type of path to use with DOPath tweens Type of path to use with DOPath tweens
@ -1484,7 +1496,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector2},DG.Tweening.Core.DOSetter{UnityEngine.Vector2},UnityEngine.Vector2,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector2Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector2Surrogate},UnityEngine.Vector2,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1492,7 +1504,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector3},DG.Tweening.Core.DOSetter{UnityEngine.Vector3},UnityEngine.Vector3,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},UnityEngine.Vector3,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1500,7 +1512,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{UnityEngine.Vector4},DG.Tweening.Core.DOSetter{UnityEngine.Vector4},UnityEngine.Vector4,System.Single)"> <member name="M:DG.Tweening.DOTween.To(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector4Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector4Surrogate},UnityEngine.Vector4,System.Single)">
<summary>Tweens a property or field to the given value using default plugins</summary> <summary>Tweens a property or field to the given value using default plugins</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1551,7 +1563,7 @@
<para>Example usage with lambda:</para><code>x=> myProperty = x</code></param> <para>Example usage with lambda:</para><code>x=> myProperty = x</code></param>
<param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param> <param name="endValue">The end value to reach</param><param name="duration">The tween's duration</param>
</member> </member>
<member name="M:DG.Tweening.DOTween.ToAxis(DG.Tweening.Core.DOGetter{UnityEngine.Vector3},DG.Tweening.Core.DOSetter{UnityEngine.Vector3},System.Single,System.Single,DG.Tweening.AxisConstraint)"> <member name="M:DG.Tweening.DOTween.ToAxis(DG.Tweening.Core.DOGetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},DG.Tweening.Core.DOSetter{DG.Tweening.Core.Surrogates.Vector3Surrogate},System.Single,System.Single,DG.Tweening.AxisConstraint)">
<summary>Tweens only one axis of a Vector3 to the given value using default plugins.</summary> <summary>Tweens only one axis of a Vector3 to the given value using default plugins.</summary>
<param name="getter">A getter for the field or property to tween. <param name="getter">A getter for the field or property to tween.
<para>Example usage with lambda:</para><code>()=> myProperty</code></param> <para>Example usage with lambda:</para><code>()=> myProperty</code></param>
@ -1821,6 +1833,12 @@
<summary>Continuously increments the tween at the end of each loop cycle (A to B, B to B+(A-B), and so on), thus always moving "onward". <summary>Continuously increments the tween at the end of each loop cycle (A to B, B to B+(A-B), and so on), thus always moving "onward".
<para>In case of String tweens works only if the tween is set as relative</para></summary> <para>In case of String tweens works only if the tween is set as relative</para></summary>
</member> </member>
<member name="T:DG.Tweening.Core.Surrogates.Vector4Surrogate">
<summary>
A surrogate for Vector2/3/4 values to work around Unity's bug when trying to cast to
a Vector2/3/4 plugin on WP8.1
</summary>
</member>
<member name="T:DG.Tweening.Tweener"> <member name="T:DG.Tweening.Tweener">
<summary> <summary>
Animates a single value Animates a single value

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.