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

Added Material operation shortcuts (DOKill etc)

This commit is contained in:
Demigiant 2015-08-31 10:49:55 +02:00
parent 599398b1ce
commit 8ad4d4d10c
41 changed files with 676 additions and 50 deletions

1
.gitignore vendored
View File

@ -21,6 +21,7 @@ ExternalPluginsTestsAndExamples*
*.Unity*/Assets/-tk2d*
*.Unity*/Assets/Console*Pro*
*.Unity*/Assets/Text*Mesh*Pro*
.vs
*HOPoolOperator*
*HOTools*
zz builds

View File

@ -1636,6 +1636,16 @@
<param name="withCallbacks">For Sequences only: if TRUE also internal Sequence callbacks will be fired,
otherwise they will be ignored</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOComplete(UnityEngine.Material,System.Boolean)">
<summary>
Completes all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens completed
(meaning the tweens that don't have infinite loops and were not already complete)
</summary>
<param name="withCallbacks">For Sequences only: if TRUE also internal Sequence callbacks will be fired,
otherwise they will be ignored</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Component,System.Boolean)">
<summary>
Kills all tweens that have this target as a reference
@ -1644,6 +1654,14 @@
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Material,System.Boolean)">
<summary>
Kills all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens killed.
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Component)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference
@ -1651,6 +1669,13 @@
and returns the total number of tweens flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Material)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Component,System.Single,System.Boolean)">
<summary>
Sends to the given position all tweens that have this target as a reference
@ -1661,6 +1686,16 @@
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Material,System.Single,System.Boolean)">
<summary>
Sends to the given position all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens involved.
</summary>
<param name="to">Time position to reach
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Component)">
<summary>
Pauses all tweens that have this target as a reference
@ -1668,6 +1703,13 @@
and returns the total number of tweens paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Material)">
<summary>
Pauses all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Component)">
<summary>
Plays all tweens that have this target as a reference
@ -1675,6 +1717,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Material)">
<summary>
Plays all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Component)">
<summary>
Plays backwards all tweens that have this target as a reference
@ -1682,6 +1731,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Material)">
<summary>
Plays backwards all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Component)">
<summary>
Plays forward all tweens that have this target as a reference
@ -1689,6 +1745,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Material)">
<summary>
Plays forward all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
@ -1696,6 +1759,13 @@
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Material,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
@ -1703,6 +1773,13 @@
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Material,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
<summary>
Smoothly rewinds all tweens that have this target as a reference
@ -1710,6 +1787,13 @@
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Material)">
<summary>
Smoothly rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Component)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference
@ -1717,6 +1801,13 @@
and returns the total number of tweens involved.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Material)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens involved.
</summary>
</member>
<member name="T:DG.Tweening.TweenParams">
<summary>
This class serves only as a utility class to store tween settings to apply on multiple tweens.

View File

@ -1636,6 +1636,16 @@
<param name="withCallbacks">For Sequences only: if TRUE also internal Sequence callbacks will be fired,
otherwise they will be ignored</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOComplete(UnityEngine.Material,System.Boolean)">
<summary>
Completes all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens completed
(meaning the tweens that don't have infinite loops and were not already complete)
</summary>
<param name="withCallbacks">For Sequences only: if TRUE also internal Sequence callbacks will be fired,
otherwise they will be ignored</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Component,System.Boolean)">
<summary>
Kills all tweens that have this target as a reference
@ -1644,6 +1654,14 @@
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Material,System.Boolean)">
<summary>
Kills all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens killed.
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Component)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference
@ -1651,6 +1669,13 @@
and returns the total number of tweens flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Material)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Component,System.Single,System.Boolean)">
<summary>
Sends to the given position all tweens that have this target as a reference
@ -1661,6 +1686,16 @@
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Material,System.Single,System.Boolean)">
<summary>
Sends to the given position all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens involved.
</summary>
<param name="to">Time position to reach
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Component)">
<summary>
Pauses all tweens that have this target as a reference
@ -1668,6 +1703,13 @@
and returns the total number of tweens paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Material)">
<summary>
Pauses all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Component)">
<summary>
Plays all tweens that have this target as a reference
@ -1675,6 +1717,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Material)">
<summary>
Plays all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Component)">
<summary>
Plays backwards all tweens that have this target as a reference
@ -1682,6 +1731,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Material)">
<summary>
Plays backwards all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Component)">
<summary>
Plays forward all tweens that have this target as a reference
@ -1689,6 +1745,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Material)">
<summary>
Plays forward all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
@ -1696,6 +1759,13 @@
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Material,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
@ -1703,6 +1773,13 @@
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Material,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
<summary>
Smoothly rewinds all tweens that have this target as a reference
@ -1710,6 +1787,13 @@
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Material)">
<summary>
Smoothly rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Component)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference
@ -1717,6 +1801,13 @@
and returns the total number of tweens involved.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Material)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens involved.
</summary>
</member>
<member name="T:DG.Tweening.TweenParams">
<summary>
This class serves only as a utility class to store tween settings to apply on multiple tweens.

View File

@ -1636,6 +1636,16 @@
<param name="withCallbacks">For Sequences only: if TRUE also internal Sequence callbacks will be fired,
otherwise they will be ignored</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOComplete(UnityEngine.Material,System.Boolean)">
<summary>
Completes all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens completed
(meaning the tweens that don't have infinite loops and were not already complete)
</summary>
<param name="withCallbacks">For Sequences only: if TRUE also internal Sequence callbacks will be fired,
otherwise they will be ignored</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Component,System.Boolean)">
<summary>
Kills all tweens that have this target as a reference
@ -1644,6 +1654,14 @@
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Material,System.Boolean)">
<summary>
Kills all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens killed.
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Component)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference
@ -1651,6 +1669,13 @@
and returns the total number of tweens flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Material)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Component,System.Single,System.Boolean)">
<summary>
Sends to the given position all tweens that have this target as a reference
@ -1661,6 +1686,16 @@
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Material,System.Single,System.Boolean)">
<summary>
Sends to the given position all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens involved.
</summary>
<param name="to">Time position to reach
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Component)">
<summary>
Pauses all tweens that have this target as a reference
@ -1668,6 +1703,13 @@
and returns the total number of tweens paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Material)">
<summary>
Pauses all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Component)">
<summary>
Plays all tweens that have this target as a reference
@ -1675,6 +1717,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Material)">
<summary>
Plays all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Component)">
<summary>
Plays backwards all tweens that have this target as a reference
@ -1682,6 +1731,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Material)">
<summary>
Plays backwards all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Component)">
<summary>
Plays forward all tweens that have this target as a reference
@ -1689,6 +1745,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Material)">
<summary>
Plays forward all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
@ -1696,6 +1759,13 @@
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Material,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
@ -1703,6 +1773,13 @@
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Material,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
<summary>
Smoothly rewinds all tweens that have this target as a reference
@ -1710,6 +1787,13 @@
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Material)">
<summary>
Smoothly rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Component)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference
@ -1717,6 +1801,13 @@
and returns the total number of tweens involved.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Material)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens involved.
</summary>
</member>
<member name="T:DG.Tweening.TweenParams">
<summary>
This class serves only as a utility class to store tween settings to apply on multiple tweens.

View File

@ -1,8 +1,8 @@
fileFormatVersion: 2
guid: 02fe78e962405814a83b8ba6c9471d32
folderAsset: yes
timeCreated: 1426681054
licenseType: Pro
timeCreated: 1439628445
licenseType: Free
DefaultImporter:
userData:
assetBundleName:

View File

@ -1,8 +1,8 @@
fileFormatVersion: 2
guid: 6e71a3e2fb5854e43823a9da25b68e21
folderAsset: yes
timeCreated: 1426681054
licenseType: Pro
timeCreated: 1439628445
licenseType: Free
DefaultImporter:
userData:
assetBundleName:

View File

@ -1,18 +1 @@
fileFormatVersion: 2
guid: 38d405c119fcc7c4e83d4a478a40ff2f
PluginImporter:
serializedVersion: 1
iconMap: {}
executionOrder: {}
isPreloaded: 0
platformData:
Any:
enabled: 0
settings: {}
Editor:
enabled: 1
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
guid: 38d405c119fcc7c4e83d4a478a40ff2f

View File

@ -1,18 +1 @@
fileFormatVersion: 2
guid: 4ad02dc83da735c4e8d945332b9202f6
PluginImporter:
serializedVersion: 1
iconMap: {}
executionOrder: {}
isPreloaded: 0
platformData:
Any:
enabled: 0
settings: {}
Editor:
enabled: 1
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
guid: 4ad02dc83da735c4e8d945332b9202f6

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 42c12149efdc035458bffa42058b9a04
timeCreated: 1437676366
timeCreated: 1439628452
licenseType: Free
PluginImporter:
serializedVersion: 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,55 @@
fileFormatVersion: 2
guid: 54f6835bb459b894d842dc386533f7e3
timeCreated: 1440235341
licenseType: Free
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 0
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: .25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 8
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -3
maxTextureSize: 128
textureSettings:
filterMode: 1
aniso: -1
mipBias: -1
wrapMode: 1
nPOTScale: 0
lightmap: 0
rGBM: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: .5, y: .5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 1
alphaIsTransparency: 1
textureType: 8
buildTargetSettings: []
spriteSheet:
sprites: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,26 @@
using UnityEngine;
using System.Collections;
using DG.Tweening;
public class FollowTarget : MonoBehaviour
{
public Transform targetToFollow;
public Transform follower;
Vector3 prevTargetPos;
Tweener followTween;
void Start()
{
prevTargetPos = targetToFollow.position;
followTween = follower.DOMoveX(targetToFollow.position.x, 2).SetAutoKill(false);
}
void Update()
{
if (prevTargetPos != targetToFollow.position) {
prevTargetPos = targetToFollow.position;
followTween.ChangeEndValue(targetToFollow.position, 2, true).Restart();
}
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: ffddcdd89d0eb1644be5e54193fca561
timeCreated: 1440148479
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ee8fd0a0eaa551541be3af0385bff84f
timeCreated: 1440148474
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,25 @@
using UnityEngine;
using System.Collections;
using DG.Tweening;
public class FollowTargetUntilReached : MonoBehaviour
{
public Transform targetToFollow;
public Transform follower;
void Start()
{
// Create tween and use OnUpdate to follow that target.
// In this case, when the target is reached the tween will be
// automatically killed and the following will stop
Vector3 prevTargetPos = targetToFollow.position;
Tweener followTween = follower.DOMove(targetToFollow.position, 2);
followTween.OnUpdate(()=> {
if (prevTargetPos != targetToFollow.position) {
prevTargetPos = targetToFollow.position;
followTween.ChangeEndValue(targetToFollow.position, 2, true).Restart();
}
});
followTween.OnComplete(()=> Debug.Log("Target reached and tween killed"));
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 574f167fa9e36b54a970e5c00597e8c0
timeCreated: 1440234949
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 42bbd4570313d7f41bc44618520dc7f3
timeCreated: 1440234943
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using DG.Tweening;
public class UIFillAmount : MonoBehaviour
{
public Image fillImage;
public float tweenTime = 2;
void Start()
{
fillImage.DOFillAmount(0, tweenTime).SetLoops(-1, LoopType.Yoyo);
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 441241a910a18564dae53506686e077e
timeCreated: 1440235390
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fdcfe2995d378c4458cd11a6b695335a
timeCreated: 1440235330
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -10,17 +10,16 @@ using UnityEngine.UI;
public class TempTests : BrainBase
{
public Transform target;
Tween tween;
void Start()
{
tween = target.DOMoveX(2, 1).SetAutoKill(false).OnPlay(()=> Debug.Log("Play"));
}
float delay = 0.15f;
Sequence seq = DOTween.Sequence();
seq.Insert(delay, target.DOMoveX(0.5f, 0.5f).OnComplete(() => {
Debug.Log("Doesn't work");
}));
seq.OnComplete(()=> Debug.Log("Works"));
void OnGUI()
{
if (GUILayout.Button("Restart")) tween.Restart();
if (GUILayout.Button("Flip")) tween.Flip();
if (GUILayout.Button("TogglePause")) tween.TogglePause();
target.DORotate (new Vector3 (1, 2, 1), 2);
}
}

View File

@ -32,7 +32,7 @@ namespace DG.Tweening
public class DOTween
{
/// <summary>DOTween's version</summary>
public static readonly string Version = "1.0.815";
public static readonly string Version = "1.0.820";
///////////////////////////////////////////////
// Options ////////////////////////////////////

View File

@ -1140,6 +1140,18 @@ namespace DG.Tweening
{
return DOTween.Complete(target, withCallbacks);
}
/// <summary>
/// Completes all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens completed
/// (meaning the tweens that don't have infinite loops and were not already complete)
/// </summary>
/// <param name="withCallbacks">For Sequences only: if TRUE also internal Sequence callbacks will be fired,
/// otherwise they will be ignored</param>
public static int DOComplete(this Material target, bool withCallbacks = false)
{
return DOTween.Complete(target, withCallbacks);
}
/// <summary>
/// Kills all tweens that have this target as a reference
@ -1153,6 +1165,16 @@ namespace DG.Tweening
// return tot + DOTween.Kill(target);
return DOTween.Kill(target, complete);
}
/// <summary>
/// Kills all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens killed.
/// </summary>
/// <param name="complete">If TRUE completes the tween before killing it</param>
public static int DOKill(this Material target, bool complete = false)
{
return DOTween.Kill(target, complete);
}
/// <summary>
/// Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference
@ -1163,6 +1185,15 @@ namespace DG.Tweening
{
return DOTween.Flip(target);
}
/// <summary>
/// Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens flipped.
/// </summary>
public static int DOFlip(this Material target)
{
return DOTween.Flip(target);
}
/// <summary>
/// Sends to the given position all tweens that have this target as a reference
@ -1176,6 +1207,18 @@ namespace DG.Tweening
{
return DOTween.Goto(target, to, andPlay);
}
/// <summary>
/// Sends to the given position all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens involved.
/// </summary>
/// <param name="to">Time position to reach
/// (if higher than the whole tween duration the tween will simply reach its end)</param>
/// <param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
public static int DOGoto(this Material target, float to, bool andPlay = false)
{
return DOTween.Goto(target, to, andPlay);
}
/// <summary>
/// Pauses all tweens that have this target as a reference
@ -1186,6 +1229,15 @@ namespace DG.Tweening
{
return DOTween.Pause(target);
}
/// <summary>
/// Pauses all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens paused.
/// </summary>
public static int DOPause(this Material target)
{
return DOTween.Pause(target);
}
/// <summary>
/// Plays all tweens that have this target as a reference
@ -1196,6 +1248,15 @@ namespace DG.Tweening
{
return DOTween.Play(target);
}
/// <summary>
/// Plays all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens played.
/// </summary>
public static int DOPlay(this Material target)
{
return DOTween.Play(target);
}
/// <summary>
/// Plays backwards all tweens that have this target as a reference
@ -1206,6 +1267,15 @@ namespace DG.Tweening
{
return DOTween.PlayBackwards(target);
}
/// <summary>
/// Plays backwards all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens played.
/// </summary>
public static int DOPlayBackwards(this Material target)
{
return DOTween.PlayBackwards(target);
}
/// <summary>
/// Plays forward all tweens that have this target as a reference
@ -1216,6 +1286,15 @@ namespace DG.Tweening
{
return DOTween.PlayForward(target);
}
/// <summary>
/// Plays forward all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens played.
/// </summary>
public static int DOPlayForward(this Material target)
{
return DOTween.PlayForward(target);
}
/// <summary>
/// Restarts all tweens that have this target as a reference
@ -1226,6 +1305,15 @@ namespace DG.Tweening
{
return DOTween.Restart(target, includeDelay);
}
/// <summary>
/// Restarts all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens restarted.
/// </summary>
public static int DORestart(this Material target, bool includeDelay = true)
{
return DOTween.Restart(target, includeDelay);
}
/// <summary>
/// Rewinds all tweens that have this target as a reference
@ -1236,6 +1324,15 @@ namespace DG.Tweening
{
return DOTween.Rewind(target, includeDelay);
}
/// <summary>
/// Rewinds all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens rewinded.
/// </summary>
public static int DORewind(this Material target, bool includeDelay = true)
{
return DOTween.Rewind(target, includeDelay);
}
/// <summary>
/// Smoothly rewinds all tweens that have this target as a reference
@ -1246,6 +1343,15 @@ namespace DG.Tweening
{
return DOTween.SmoothRewind(target);
}
/// <summary>
/// Smoothly rewinds all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens rewinded.
/// </summary>
public static int DOSmoothRewind(this Material target)
{
return DOTween.SmoothRewind(target);
}
/// <summary>
/// Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference
@ -1256,6 +1362,15 @@ namespace DG.Tweening
{
return DOTween.TogglePause(target);
}
/// <summary>
/// Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference
/// (meaning tweens that were started from this target, or that had this target added as an Id)
/// and returns the total number of tweens involved.
/// </summary>
public static int DOTogglePause(this Material target)
{
return DOTween.TogglePause(target);
}
#endregion
}

View File

@ -1636,6 +1636,16 @@
<param name="withCallbacks">For Sequences only: if TRUE also internal Sequence callbacks will be fired,
otherwise they will be ignored</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOComplete(UnityEngine.Material,System.Boolean)">
<summary>
Completes all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens completed
(meaning the tweens that don't have infinite loops and were not already complete)
</summary>
<param name="withCallbacks">For Sequences only: if TRUE also internal Sequence callbacks will be fired,
otherwise they will be ignored</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Component,System.Boolean)">
<summary>
Kills all tweens that have this target as a reference
@ -1644,6 +1654,14 @@
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Material,System.Boolean)">
<summary>
Kills all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens killed.
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Component)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference
@ -1651,6 +1669,13 @@
and returns the total number of tweens flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Material)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Component,System.Single,System.Boolean)">
<summary>
Sends to the given position all tweens that have this target as a reference
@ -1661,6 +1686,16 @@
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Material,System.Single,System.Boolean)">
<summary>
Sends to the given position all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens involved.
</summary>
<param name="to">Time position to reach
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Component)">
<summary>
Pauses all tweens that have this target as a reference
@ -1668,6 +1703,13 @@
and returns the total number of tweens paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Material)">
<summary>
Pauses all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Component)">
<summary>
Plays all tweens that have this target as a reference
@ -1675,6 +1717,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Material)">
<summary>
Plays all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Component)">
<summary>
Plays backwards all tweens that have this target as a reference
@ -1682,6 +1731,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Material)">
<summary>
Plays backwards all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Component)">
<summary>
Plays forward all tweens that have this target as a reference
@ -1689,6 +1745,13 @@
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Material)">
<summary>
Plays forward all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Component,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
@ -1696,6 +1759,13 @@
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Material,System.Boolean)">
<summary>
Restarts all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Component,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
@ -1703,6 +1773,13 @@
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Material,System.Boolean)">
<summary>
Rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
<summary>
Smoothly rewinds all tweens that have this target as a reference
@ -1710,6 +1787,13 @@
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Material)">
<summary>
Smoothly rewinds all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Component)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference
@ -1717,6 +1801,13 @@
and returns the total number of tweens involved.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Material)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference
(meaning tweens that were started from this target, or that had this target added as an Id)
and returns the total number of tweens involved.
</summary>
</member>
<member name="T:DG.Tweening.TweenParams">
<summary>
This class serves only as a utility class to store tween settings to apply on multiple tweens.

Binary file not shown.