diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML
index d5a9cfc..ed3c17f 100644
--- a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML
+++ b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML
@@ -4,158 +4,45 @@
DOTween
-
+
- Update type
+ Types of autoPlay behaviours
-
- Updates every frame during Update calls
+
+ No tween is automatically played
-
- Updates every frame during LateUpdate calls
+
+ Only Sequences are automatically played
-
- Updates using FixedUpdate calls
+
+ Only Tweeners are automatically played
-
+
+ All tweens are automatically played
+
+
- Path mode (used to determine correct LookAt orientation)
+ What axis to constrain in case of Vector tweens
-
- Ignores the path mode (and thus LookAt behaviour)
+
+ Called the first time the tween is set in a playing state, after any eventual delay
-
- Regular 3D path
-
-
- 2D top-down path
-
-
- 2D side-scroller path
-
-
+
- Used internally
+ Used in place of System.Func, which is not available in mscorlib.
-
+
- This class serves only as a utility class to store tween settings to apply on multiple tweens.
- It is in no way needed otherwise, since you can directly apply tween settings to a tween via chaining
+ Used in place of System.Action.
-
- A variable you can eventually Clear and reuse when needed,
- to avoid instantiating TweenParams objects
-
-
- Creates a new TweenParams object, which you can use to store tween settings
- to pass to multiple tweens via myTween.SetAs(myTweenParms)
-
-
- Clears and resets this TweenParams instance using default values,
- so it can be reused without instantiating another one
-
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
- If TRUE the tween will be automatically killed when complete
-
-
- Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
- The ID to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
- IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
- When using shorcuts the shortcut target is already assigned as the tween's target,
- so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
- The target to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
- Loop behaviour type (default: LoopType.Restart)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual overshoot or amplitude to use with Back or Elastic easeType (default is 1.70158)
- Eventual period to use with Elastic easeType (default is 0)
-
-
- Sets the ease of the tween using an AnimationCurve.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween using a custom ease function.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the recycling behaviour for the tween.
- If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
-
-
- Sets the update type to the one defined in DOTween.defaultUpdateType (UpdateType.Normal unless changed)
- and lets you choose if it should be independent from Unity's Time.timeScale
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the type of update (default or independent) for the tween
- The type of update (default: UpdateType.Normal)
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the onStart callback for the tween.
- Called the first time the tween is set in a playing state, after any eventual delay
-
-
- Sets the onPlay callback for the tween.
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Sets the onRewind callback for the tween.
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Sets the onUpdate callback for the tween.
- Called each time the tween updates
-
-
- Sets the onStepComplete callback for the tween.
- Called the moment the tween completes one loop cycle, even when going backwards
-
-
- Sets the onComplete callback for the tween.
- Called the moment the tween reaches its final forward position, loops included
-
-
- Sets the onKill callback for the tween.
- Called the moment the tween is killed
-
-
- Sets the onWaypointChange callback for the tween.
- Called when a path tween reaches a new waypoint
-
-
- Sets a delayed startup for the tween.
- Has no effect on Sequences or if the tween has already started
-
-
- If isRelative is TRUE sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ Public so it can be used by lose scripts related to DOTween (like DOTweenAnimation)
+
@@ -163,6 +50,720 @@
Contains all instance-based methods
+
+ Used internally inside Unity Editor, as a trick to update DOTween's inspector at every frame
+
+
+
+ Directly sets the current max capacity of Tweeners and Sequences
+ (meaning how many Tweeners and Sequences can be running at the same time),
+ so that DOTween doesn't need to automatically increase them in case the max is reached
+ (which might lead to hiccups when that happens).
+ Sequences capacity must be less or equal to Tweeners capacity
+ (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
+ Beware: use this method only when there are no tweens running.
+
+ Max Tweeners capacity.
+ Default: 200
+ Max Sequences capacity.
+ Default: 50
+
+
+
+ This class contains a C# port of the easing equations created by Robert Penner (http://robertpenner.com/easing).
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
+
+
+
+
+ Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
+
+
+
+
+ Used to interpret AnimationCurves as eases.
+ Public so it can be used by external ease factories
+
+
+
+
+ Additional notices passed to plugins when updating.
+ Public so it can be used by custom plugins. Internally, only PathPlugin uses it
+
+
+
+
+ None
+
+
+
+
+ Lets the plugin know that we restarted or rewinded
+
+
+
+
+ Public only so custom shortcuts can access some of these methods
+
+
+
+
+ Returns a Vector3 with z = 0
+
+
+
+
+ Returns the 2D angle between two vectors
+
+
+
+
+ Struct that stores two colors (used for LineRenderer tweens)
+
+
+
+
+ Used for tween callbacks
+
+
+
+
+ Used for tween callbacks
+
+
+
+
+ Used for custom and animationCurve-based ease functions. Must return a value between 0 and 1.
+
+
+
+
+ Main DOTween class. Contains static methods to create and control tweens in a generic way
+
+
+
+ DOTween's version
+
+
+ If TRUE (default) makes tweens slightly slower but safer, automatically taking care of a series of things
+ (like targets becoming null while a tween is playing).
+ Default: TRUE
+
+
+ If TRUE you will get a DOTween report when exiting play mode (only in the Editor).
+ Useful to know how many max Tweeners and Sequences you reached and optimize your final project accordingly.
+ Beware, this will slightly slow down your tweens while inside Unity Editor.
+ Default: FALSE
+
+
+ Global DOTween timeScale.
+ Default: 1
+
+
+ If TRUE, DOTween will use Time.smoothDeltaTime instead of Time.deltaTime for UpdateType.Normal and UpdateType.Late tweens
+ (unless they're set as timeScaleIndependent, in which case this setting will be ignored).
+ Setting this to TRUE will lead to smoother animations.
+ Default: FALSE
+
+
+ DOTween's log behaviour.
+ Default: LogBehaviour.ErrorsOnly
+
+
+ If TRUE draws path gizmos in Unity Editor (if the gizmos button is active).
+ Deactivate this if you want to avoid gizmos overhead while in Unity Editor
+
+
+ Default updateType for new tweens.
+ Default: UpdateType.Normal
+
+
+ Sets whether Unity's timeScale should be taken into account by default or not.
+ Default: false
+
+
+ Default autoPlay behaviour for new tweens.
+ Default: AutoPlay.All
+
+
+ Default autoKillOnComplete behaviour for new tweens.
+ Default: TRUE
+
+
+ Default loopType applied to all new tweens.
+ Default: LoopType.Restart
+
+
+ If TRUE all newly created tweens are set as recyclable, otherwise not.
+ Default: FALSE
+
+
+ Default ease applied to all new Tweeners (not to Sequences which always have Ease.Linear as default).
+ Default: Ease.InOutQuad
+
+
+ Default overshoot/amplitude used for eases
+ Default: 1.70158f
+
+
+ Default period used for eases
+ Default: 0
+
+
+
+ Must be called once, before the first ever DOTween call/reference,
+ otherwise it will be called automatically and will use default options.
+ Calling it a second time won't have any effect.
+ You can chain SetCapacity to this method, to directly set the max starting size of Tweeners and Sequences:
+ DOTween.Init(false, false, LogBehaviour.Default).SetCapacity(100, 20);
+
+ If TRUE all new tweens will be set for recycling, meaning that when killed,
+ instead of being destroyed, they will be put in a pool and reused instead of creating new tweens. This option allows you to avoid
+ GC allocations by reusing tweens, but you will have to take care of tween references, since they might result active
+ even if they were killed (since they might have been respawned and are now being used for other tweens).
+ If you want to automatically set your tween references to NULL when a tween is killed
+ you can use the OnKill callback like this:
+ .OnKill(()=> myTweenReference = null)
+ You can change this setting at any time by changing the static property,
+ or you can set the recycling behaviour for each tween separately, using:
+ SetRecyclable(bool recyclable)
+ Default: FALSE
+ If TRUE makes tweens slightly slower but safer, automatically taking care of a series of things
+ (like targets becoming null while a tween is playing).
+ You can change this setting at any time by changing the static property.
+ Default: FALSE
+ Type of logging to use.
+ You can change this setting at any time by changing the static property.
+ Default: ErrorsOnly
+
+
+
+ Directly sets the current max capacity of Tweeners and Sequences
+ (meaning how many Tweeners and Sequences can be running at the same time),
+ so that DOTween doesn't need to automatically increase them in case the max is reached
+ (which might lead to hiccups when that happens).
+ Sequences capacity must be less or equal to Tweeners capacity
+ (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
+ Beware: use this method only when there are no tweens running.
+
+ Max Tweeners capacity.
+ Default: 200
+ Max Sequences capacity.
+ Default: 50
+
+
+
+ Kills all tweens, clears all cached tween pools and plugins and resets the max Tweeners/Sequences capacities to the default values.
+
+ If TRUE also destroys DOTween's gameObject and resets its initializiation, default settings and everything else
+ (so that next time you use it it will need to be re-initialized)
+
+
+
+ Clears all cached tween pools.
+
+
+
+
+ Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
+ and returns the total number of invalid tweens found and removed.
+ Automatically called when loading a new scene if is TRUE.
+ BEWARE: this is a slightly expensive operation so use it with care
+
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using a custom plugin
+ The plugin to use. Each custom plugin implements a static Get() method
+ you'll need to call to assign the correct plugin in the correct way, like this:
+ CustomPlugin.Get()
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens only one axis of a Vector3 to the given value using default plugins.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+ The axis to tween
+
+
+ Tweens only the alpha of a Color to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a virtual property from the given start to the given end value
+ and implements a setter that allows to use that value with an external method or a lambda
+ Example:
+ To(MyMethod, 0, 12, 0.5f);
+ Where MyMethod is a function that accepts a float parameter (which will be the result of the virtual tween)
+ The action to perform with the tweened value
+ The value to start from
+ The end value to reach
+ The duration of the virtual tween
+
+
+
+ Punches a Vector3 towards the given direction and then back to the starting one
+ as if it was connected to the starting position via an elastic.
+ This tween type generates some GC allocations at startup
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The direction and strength of the punch
+ The duration of the tween
+ Indicates how much will the punch vibrate
+ Represents how much (0 to 1) the vector will go beyond the starting position when bouncing backwards.
+ 1 creates a full oscillation between the direction and the opposite decaying direction,
+ while 0 oscillates only between the starting position and the decaying direction
+
+
+ Shakes a Vector3 with the given values.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The duration of the tween
+ The shake strength
+ Indicates how much will the shake vibrate
+ Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
+ Setting it to 0 will shake along a single direction and behave like a random punch.
+ If TRUE only shakes on the X Y axis (looks better with things like cameras).
+
+
+ Shakes a Vector3 with the given values.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The duration of the tween
+ The shake strength on each axis
+ Indicates how much will the shake vibrate
+ Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
+ Setting it to 0 will shake along a single direction and behave like a random punch.
+
+
+ Tweens a property or field to the given values using default plugins.
+ Ease is applied between each segment and not as a whole.
+ This tween type generates some GC allocations at startup
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end values to reach for each segment. This array must have the same length as durations
+ The duration of each segment. This array must have the same length as endValues
+
+
+
+ Returns a new to be used for tween groups
+
+
+
+ Completes all tweens and returns the number of actual tweens completed
+ (meaning tweens that don't have infinite loops and were not already complete)
+
+
+ Completes all tweens with the given ID or target and returns the number of actual tweens completed
+ (meaning the tweens that don't have infinite loops and were not already complete)
+
+
+ Flips all tweens (changing their direction to forward if it was backwards and viceversa),
+ then returns the number of actual tweens flipped
+
+
+ Flips the tweens with the given ID or target (changing their direction to forward if it was backwards and viceversa),
+ then returns the number of actual tweens flipped
+
+
+ Sends all tweens to the given position (calculating also eventual loop cycles) and returns the actual tweens involved
+
+
+ Sends all tweens with the given ID or target to the given position (calculating also eventual loop cycles)
+ and returns the actual tweens involved
+
+
+ Kills all tweens and returns the number of actual tweens killed
+ If TRUE completes the tweens before killing them
+
+
+ Kills all tweens with the given ID or target and returns the number of actual tweens killed
+ If TRUE completes the tweens before killing them
+
+
+ Pauses all tweens and returns the number of actual tweens paused
+
+
+ Pauses all tweens with the given ID or target and returns the number of actual tweens paused
+ (meaning the tweens that were actually playing and have been paused)
+
+
+ Plays all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already playing or complete)
+
+
+ Plays all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Plays all tweens with the given target and the given ID, and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Plays backwards all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already started, playing backwards or rewinded)
+
+
+ Plays backwards all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already started, playing backwards or rewinded)
+
+
+ Plays forward all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already playing forward or complete)
+
+
+ Plays forward all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already playing forward or complete)
+
+
+ Restarts all tweens, then returns the number of actual tweens restarted
+
+
+ Restarts all tweens with the given ID or target, then returns the number of actual tweens restarted
+
+
+ Restarts all tweens with the given target and the given ID, and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Rewinds and pauses all tweens, then returns the number of actual tweens rewinded
+ (meaning tweens that were not already rewinded)
+
+
+ Rewinds and pauses all tweens with the given ID or target, then returns the number of actual tweens rewinded
+ (meaning the tweens that were not already rewinded)
+
+
+ Smoothly rewinds all tweens (delays excluded), then returns the number of actual tweens rewinding/rewinded
+ (meaning tweens that were not already rewinded).
+ A "smooth rewind" animates the tween to its start position,
+ skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
+ Note that a tween that was smoothly rewinded will have its play direction flipped
+
+
+ Smoothly rewinds all tweens (delays excluded) with the given ID or target, then returns the number of actual tweens rewinding/rewinded
+ (meaning the tweens that were not already rewinded).
+ A "smooth rewind" animates the tween to its start position,
+ skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
+ Note that a tween that was smoothly rewinded will have its play direction flipped
+
+
+ Toggles the play state of all tweens and returns the number of actual tweens toggled
+ (meaning tweens that could be played or paused, depending on the toggle state)
+
+
+ Toggles the play state of all tweens with the given ID or target and returns the number of actual tweens toggled
+ (meaning the tweens that could be played or paused, depending on the toggle state)
+
+
+
+ Returns TRUE if a tween with the given ID or target is active (regardless if it's playing or not).
+ You can also use this to know if a shortcut tween is active for a given target.
+ Example:
+ transform.DOMoveX(45, 1); // transform is automatically added as the tween target
+ DOTween.IsTweening(transform); // Returns true
+
+
+
+
+ Returns the total number of active and playing tweens.
+ A tween is considered as playing even if its delay is actually playing
+
+
+
+
+ Returns a list of all active tweens in a playing state.
+ Returns NULL if there are no active playing tweens.
+ Beware: each time you call this method a new list is generated, so use it for debug only
+
+
+
+
+ Returns a list of all active tweens in a paused state.
+ Returns NULL if there are no active paused tweens.
+ Beware: each time you call this method a new list is generated, so use it for debug only
+
+
+
+
+ Returns a list of all active tweens with the given id.
+ Returns NULL if there are no active tweens with the given id.
+ Beware: each time you call this method a new list is generated
+ If TRUE returns only the tweens with the given ID that are currently playing
+
+
+
+
+ Returns a list of all active tweens with the given target.
+ Returns NULL if there are no active tweens with the given target.
+ Beware: each time you call this method a new list is generated
+ If TRUE returns only the tweens with the given target that are currently playing
+
+
+
+
+ Creates virtual tweens that can be used to change other elements via their OnUpdate calls
+
+
+
+
+ Tweens a virtual float.
+ You can add regular settings to the generated tween,
+ but do not use SetUpdate or you will overwrite the onVirtualUpdate parameter
+
+ The value to start from
+ The value to tween to
+ The duration of the tween
+ A callback which must accept a parameter of type float, called at each update
+
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+ Eventual overshoot to use with Back ease
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+ Eventual amplitude to use with Elastic easeType
+ Eventual period to use with Elastic easeType
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The AnimationCurve to use for ease
+
+
+ Fires the given callback after the given time.
+ Callback delay
+ Callback to fire when the delay has expired
+ If TRUE (default) ignores Unity's timeScale
+
+
+
+ Don't assign this! It's assigned automatically when creating 0 duration tweens
+
+
+
+
+ Don't assign this! It's assigned automatically when setting the ease to an AnimationCurve or to a custom ease function
+
+
+
+
+ Allows to wrap ease method in special ways, adding extra features
+
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ Ease type
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ AnimationCurve to use for the ease
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ Custom ease function to use
+
Used to allow method chaining with DOTween.Init
@@ -183,84 +784,55 @@
Max Sequences capacity.
Default: 50
-
- Used internally inside Unity Editor, as a trick to update DOTween's inspector at every frame
-
-
+
- Directly sets the current max capacity of Tweeners and Sequences
- (meaning how many Tweeners and Sequences can be running at the same time),
- so that DOTween doesn't need to automatically increase them in case the max is reached
- (which might lead to hiccups when that happens).
- Sequences capacity must be less or equal to Tweeners capacity
- (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
- Beware: use this method only when there are no tweens running.
-
- Max Tweeners capacity.
- Default: 200
- Max Sequences capacity.
- Default: 50
-
-
-
- Public so it can be used by lose scripts related to DOTween (like DOTweenAnimation)
+ Path mode (used to determine correct LookAt orientation)
-
+
+ Ignores the path mode (and thus LookAt behaviour)
+
+
+ Regular 3D path
+
+
+ 2D top-down path
+
+
+ 2D side-scroller path
+
+
- Controls other tweens as a group
+ Type of path to use with DOPath tweens
-
+
+ Linear, composed of straight segments between each waypoint
+
+
+ Curved path (which uses Catmull-Rom curves)
+
+
- Indicates either a Tweener or a Sequence
+ Path control point
-
- Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Gets the point on the path at the given percentage (0 to 1)
+
+ The percentage (0 to 1) at which to get the point
+ If TRUE constant speed is taken into account, otherwise not
-
- TimeScale for the tween
+
+
+ This plugin generates some GC allocations at startup
+
-
- If TRUE the tween wil go backwards
-
-
- Id (usable for filtering with DOTween static methods). Can be an int, a string, an object, or anything else
-
-
- Tween target (usable for filtering with DOTween static methods). Automatically set by tween creation shorcuts
-
-
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Called when the tween state changes from playing to paused.
- If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
-
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Called each time the tween updates
-
-
- Called the moment the tween completes one loop cycle
-
-
- Called the moment the tween reaches completion (loops included)
-
-
- Called the moment the tween is killed
-
-
- Called when a path tween's current waypoint changes
-
-
- Gets and sets the time position (loops included, delays excluded) of the tween
+
+
+ Path plugin works exclusively with Transforms
+
@@ -291,349 +863,40 @@
In this mode the end value is is always considered relative
-
+
- This plugin generates some GC allocations at startup
+ Type of scramble to apply to string tweens
-
+
- Don't assign this! It's assigned automatically when creating 0 duration tweens
+ No scrambling of characters
-
+
- Don't assign this! It's assigned automatically when setting the ease to an AnimationCurve or to a custom ease function
+ A-Z + a-z + 0-9 characters
-
+
- Types of log behaviours
+ A-Z characters
-
- Log only warnings and errors
-
-
- Log warnings, errors and additional infos
-
-
- Log only errors
-
-
+
- Methods that extend Tween objects and allow to set their parameters
+ a-z characters
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
+
+
+ 0-9 characters
+
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
- If TRUE the tween will be automatically killed when complete
-
-
- Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
- The ID to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
- IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
- When using shorcuts the shortcut target is already assigned as the tween's target,
- so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
- The target to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
- Loop behaviour type (default: LoopType.Restart)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual overshoot to use with Back ease (default is 1.70158)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual amplitude to use with Elastic easeType (default is 1.70158)
- Eventual period to use with Elastic easeType (default is 0)
-
-
- Sets the ease of the tween using an AnimationCurve.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween using a custom ease function (which must return a value between 0 and 1).
- If applied to Sequences eases the whole sequence animation
-
-
- Allows the tween to be recycled after being killed.
-
-
- Sets the recycling behaviour for the tween.
- If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
-
-
- Sets the update type to UpdateType.Normal and lets you choose if it should be independent from Unity's Time.timeScale
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the type of update for the tween
- The type of update (defalt: UpdateType.Normal)
-
-
- Sets the type of update for the tween and lets you choose if it should be independent from Unity's Time.timeScale
- The type of update
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the onStart callback for the tween.
- Called the first time the tween is set in a playing state, after any eventual delay
-
-
- Sets the onPlay callback for the tween.
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Sets the onPlay callback for the tween.
- Called when the tween state changes from playing to paused.
- If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
-
- Sets the onRewind callback for the tween.
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Sets the onUpdate callback for the tween.
- Called each time the tween updates
-
-
- Sets the onStepComplete callback for the tween.
- Called the moment the tween completes one loop cycle, even when going backwards
-
-
- Sets the onComplete callback for the tween.
- Called the moment the tween reaches its final forward position, loops included
-
-
- Sets the onKill callback for the tween.
- Called the moment the tween is killed
-
-
- Sets the onWaypointChange callback for the tween.
- Called when a path tween's current waypoint changes
-
-
- Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given one.
- Doesn't copy specific SetOptions settings: those will need to be applied manually each time.
- Has no effect if the tween has already started.
- NOTE: the tween's target will not be changed
- Tween from which to copy the parameters
-
-
- Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given TweenParams.
- Has no effect if the tween has already started.
- TweenParams from which to copy the parameters
-
-
- Adds the given tween to the end of the Sequence.
- Has no effect if the Sequence has already started
- The tween to append
-
-
- Adds the given tween to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The tween to prepend
-
-
- Inserts the given tween at the same time position of the last tween added to the Sequence.
- Has no effect if the Sequence has already started
-
-
- Inserts the given tween at the given time position in the Sequence,
- automatically adding an interval if needed.
- Has no effect if the Sequence has already started
- The time position where the tween will be placed
- The tween to insert
-
-
- Adds the given interval to the end of the Sequence.
- Has no effect if the Sequence has already started
- The interval duration
-
-
- Adds the given interval to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The interval duration
-
-
- Adds the given callback to the end of the Sequence.
- Has no effect if the Sequence has already started
- The callback to append
-
-
- Adds the given callback to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The callback to prepend
-
-
- Inserts the given callback at the given time position in the Sequence,
- automatically adding an interval if needed.
- Has no effect if the Sequence has already started
- The time position where the callback will be placed
- The callback to insert
-
-
- Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
- then immediately sends the target to the previously set endValue.
-
-
- Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
- then immediately sends the target to the previously set endValue.
- If TRUE the FROM value will be calculated as relative to the current one
-
-
- Sets a delayed startup for the tween.
- Has no effect on Sequences or if the tween has already started
-
-
- Sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isRelative is TRUE sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
-
-
- Options for float tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector2 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector2 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Quaternion tweens
- If TRUE (default) the rotation will take the shortest route, and will not rotate more than 360°.
- If FALSE the rotation will be fully accounted. Is always FALSE if the tween is set as relative
-
-
- Options for Color tweens
- If TRUE only the alpha value of the color will be tweened
-
-
- Options for Vector4 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- If TRUE, rich text will be interpreted correctly while animated,
- otherwise all tags will be considered as normal text
- The type of scramble to use, if any
- A string containing the characters to use for scrambling.
- Use as many characters as possible (minimum 10) because DOTween uses a fast scramble mode which gives better results with more characters.
- Leave it to NULL to use default ones
-
-
- Options for Vector3Array tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3Array tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Path tweens (created via the DOPath shortcut)
- The eventual movement axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
- The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
-
-
- Options for Path tweens (created via the DOPath shortcut)
- If TRUE the path will be automatically closed
- The eventual movement axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
- The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target towards the given position.
- Must be chained directly to the tween creation method or to a SetOptions
- The position to look at
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target towards another transform.
- Must be chained directly to the tween creation method or to a SetOptions
- The transform to look at
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target to the path, with the given lookAhead.
- Must be chained directly to the tween creation method or to a SetOptions
- The percentage of lookAhead to use (0 to 1)
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Custom characters
+
@@ -822,48 +1085,26 @@
You can force a path to be initialized by calling myTween.ForceInit().
-
+
- Used for tween callbacks
+ Types of loop
-
+
+ Each loop cycle restarts from the beginning
+
+
+ The tween moves forward and backwards at alternate cycles
+
+
+ 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".
+ In case of String tweens works only if the tween is set as relative
+
+
- Used for tween callbacks
+ Controls other tweens as a group
-
-
- Used for custom and animationCurve-based ease functions. Must return a value between 0 and 1.
-
-
-
-
- Used in place of System.Func, which is not available in mscorlib.
-
-
-
-
- Used in place of System.Action.
-
-
-
-
- Types of autoPlay behaviours
-
-
-
- No tween is automatically played
-
-
- Only Sequences are automatically played
-
-
- Only Tweeners are automatically played
-
-
- All tweens are automatically played
-
Methods that extend known Unity objects and allow to directly create and control tweens from their instances
@@ -1468,564 +1709,499 @@
and returns the total number of tweens involved.
-
+
- Additional notices passed to plugins when updating.
- Public so it can be used by custom plugins. Internally, only PathPlugin uses it
+ This class serves only as a utility class to store tween settings to apply on multiple tweens.
+ It is in no way needed otherwise, since you can directly apply tween settings to a tween via chaining
-
+
+ A variable you can eventually Clear and reuse when needed,
+ to avoid instantiating TweenParams objects
+
+
+ Creates a new TweenParams object, which you can use to store tween settings
+ to pass to multiple tweens via myTween.SetAs(myTweenParms)
+
+
+ Clears and resets this TweenParams instance using default values,
+ so it can be reused without instantiating another one
+
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+ If TRUE the tween will be automatically killed when complete
+
+
+ Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
+ The ID to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
+ IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
+ When using shorcuts the shortcut target is already assigned as the tween's target,
+ so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
+ The target to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+ Loop behaviour type (default: LoopType.Restart)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual overshoot or amplitude to use with Back or Elastic easeType (default is 1.70158)
+ Eventual period to use with Elastic easeType (default is 0)
+
+
+ Sets the ease of the tween using an AnimationCurve.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween using a custom ease function.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the recycling behaviour for the tween.
+ If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
+
+
+ Sets the update type to the one defined in DOTween.defaultUpdateType (UpdateType.Normal unless changed)
+ and lets you choose if it should be independent from Unity's Time.timeScale
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the type of update (default or independent) for the tween
+ The type of update (default: UpdateType.Normal)
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the onStart callback for the tween.
+ Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
+
+
+ Sets the onRewind callback for the tween.
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
+
+
+ Sets the onUpdate callback for the tween.
+ Called each time the tween updates
+
+
+ Sets the onStepComplete callback for the tween.
+ Called the moment the tween completes one loop cycle, even when going backwards
+
+
+ Sets the onComplete callback for the tween.
+ Called the moment the tween reaches its final forward position, loops included
+
+
+ Sets the onKill callback for the tween.
+ Called the moment the tween is killed
+
+
+ Sets the onWaypointChange callback for the tween.
+ Called when a path tween reaches a new waypoint
+
+
+ Sets a delayed startup for the tween.
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isRelative is TRUE sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
- None
+ Methods that extend Tween objects and allow to set their parameters
-
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+ If TRUE the tween will be automatically killed when complete
+
+
+ Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
+ The ID to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
+ IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
+ When using shorcuts the shortcut target is already assigned as the tween's target,
+ so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
+ The target to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+ Loop behaviour type (default: LoopType.Restart)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual overshoot to use with Back ease (default is 1.70158)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual amplitude to use with Elastic easeType (default is 1.70158)
+ Eventual period to use with Elastic easeType (default is 0)
+
+
+ Sets the ease of the tween using an AnimationCurve.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween using a custom ease function (which must return a value between 0 and 1).
+ If applied to Sequences eases the whole sequence animation
+
+
+ Allows the tween to be recycled after being killed.
+
+
+ Sets the recycling behaviour for the tween.
+ If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
+
+
+ Sets the update type to UpdateType.Normal and lets you choose if it should be independent from Unity's Time.timeScale
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the type of update for the tween
+ The type of update (defalt: UpdateType.Normal)
+
+
+ Sets the type of update for the tween and lets you choose if it should be independent from Unity's Time.timeScale
+ The type of update
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the onStart callback for the tween.
+ Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween state changes from playing to paused.
+ If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
+
+
+ Sets the onRewind callback for the tween.
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
+
+
+ Sets the onUpdate callback for the tween.
+ Called each time the tween updates
+
+
+ Sets the onStepComplete callback for the tween.
+ Called the moment the tween completes one loop cycle, even when going backwards
+
+
+ Sets the onComplete callback for the tween.
+ Called the moment the tween reaches its final forward position, loops included
+
+
+ Sets the onKill callback for the tween.
+ Called the moment the tween is killed
+
+
+ Sets the onWaypointChange callback for the tween.
+ Called when a path tween's current waypoint changes
+
+
+ Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given one.
+ Doesn't copy specific SetOptions settings: those will need to be applied manually each time.
+ Has no effect if the tween has already started.
+ NOTE: the tween's target will not be changed
+ Tween from which to copy the parameters
+
+
+ Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given TweenParams.
+ Has no effect if the tween has already started.
+ TweenParams from which to copy the parameters
+
+
+ Adds the given tween to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The tween to append
+
+
+ Adds the given tween to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The tween to prepend
+
+
+ Inserts the given tween at the same time position of the last tween added to the Sequence.
+ Has no effect if the Sequence has already started
+
+
+ Inserts the given tween at the given time position in the Sequence,
+ automatically adding an interval if needed.
+ Has no effect if the Sequence has already started
+ The time position where the tween will be placed
+ The tween to insert
+
+
+ Adds the given interval to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The interval duration
+
+
+ Adds the given interval to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The interval duration
+
+
+ Adds the given callback to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The callback to append
+
+
+ Adds the given callback to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The callback to prepend
+
+
+ Inserts the given callback at the given time position in the Sequence,
+ automatically adding an interval if needed.
+ Has no effect if the Sequence has already started
+ The time position where the callback will be placed
+ The callback to insert
+
+
+ Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
+ then immediately sends the target to the previously set endValue.
+
+
+ Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
+ then immediately sends the target to the previously set endValue.
+ If TRUE the FROM value will be calculated as relative to the current one
+
+
+ Sets a delayed startup for the tween.
+ Has no effect on Sequences or if the tween has already started
+
+
+ Sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isRelative is TRUE sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ Options for float tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector2 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector2 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Quaternion tweens
+ If TRUE (default) the rotation will take the shortest route, and will not rotate more than 360°.
+ If FALSE the rotation will be fully accounted. Is always FALSE if the tween is set as relative
+
+
+ Options for Color tweens
+ If TRUE only the alpha value of the color will be tweened
+
+
+ Options for Vector4 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ If TRUE, rich text will be interpreted correctly while animated,
+ otherwise all tags will be considered as normal text
+ The type of scramble to use, if any
+ A string containing the characters to use for scrambling.
+ Use as many characters as possible (minimum 10) because DOTween uses a fast scramble mode which gives better results with more characters.
+ Leave it to NULL to use default ones
+
+
+ Options for Vector3Array tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3Array tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Path tweens (created via the DOPath shortcut)
+ The eventual movement axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+ The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+
+
+ Options for Path tweens (created via the DOPath shortcut)
+ If TRUE the path will be automatically closed
+ The eventual movement axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+ The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target towards the given position.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The position to look at
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target towards another transform.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The transform to look at
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target to the path, with the given lookAhead.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The percentage of lookAhead to use (0 to 1)
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
- Lets the plugin know that we restarted or rewinded
+ Types of log behaviours
-
+
+ Log only warnings and errors
+
+
+ Log warnings, errors and additional infos
+
+
+ Log only errors
+
+
- Type of path to use with DOPath tweens
+ Indicates either a Tweener or a Sequence
-
- Linear, composed of straight segments between each waypoint
+
+ TimeScale for the tween
-
- Curved path (which uses Catmull-Rom curves)
+
+ If TRUE the tween wil go backwards
-
-
- Main DOTween class. Contains static methods to create and control tweens in a generic way
-
+
+ Id (usable for filtering with DOTween static methods). Can be an int, a string, an object, or anything else
-
- DOTween's version
+
+ Tween target (usable for filtering with DOTween static methods). Automatically set by tween creation shorcuts
-
- If TRUE (default) makes tweens slightly slower but safer, automatically taking care of a series of things
- (like targets becoming null while a tween is playing).
- Default: TRUE
+
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
-
- If TRUE you will get a DOTween report when exiting play mode (only in the Editor).
- Useful to know how many max Tweeners and Sequences you reached and optimize your final project accordingly.
- Beware, this will slightly slow down your tweens while inside Unity Editor.
- Default: FALSE
+
+ Called when the tween state changes from playing to paused.
+ If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
- Global DOTween timeScale.
- Default: 1
+
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
-
- If TRUE, DOTween will use Time.smoothDeltaTime instead of Time.deltaTime for UpdateType.Normal and UpdateType.Late tweens
- (unless they're set as timeScaleIndependent, in which case this setting will be ignored).
- Setting this to TRUE will lead to smoother animations.
- Default: FALSE
+
+ Called each time the tween updates
-
- If TRUE draws path gizmos in Unity Editor (if the gizmos button is active).
- Deactivate this if you want to avoid gizmos overhead while in Unity Editor
+
+ Called the moment the tween completes one loop cycle
-
- Default updateType for new tweens.
- Default: UpdateType.Normal
+
+ Called the moment the tween reaches completion (loops included)
-
- Sets whether Unity's timeScale should be taken into account by default or not.
- Default: false
+
+ Called the moment the tween is killed
-
- Default autoPlay behaviour for new tweens.
- Default: AutoPlay.All
+
+ Called when a path tween's current waypoint changes
-
- Default autoKillOnComplete behaviour for new tweens.
- Default: TRUE
-
-
- Default loopType applied to all new tweens.
- Default: LoopType.Restart
-
-
- If TRUE all newly created tweens are set as recyclable, otherwise not.
- Default: FALSE
-
-
- Default ease applied to all new Tweeners (not to Sequences which always have Ease.Linear as default).
- Default: Ease.InOutQuad
-
-
- Default overshoot/amplitude used for eases
- Default: 1.70158f
-
-
- Default period used for eases
- Default: 0
-
-
-
- Must be called once, before the first ever DOTween call/reference,
- otherwise it will be called automatically and will use default options.
- Calling it a second time won't have any effect.
- You can chain SetCapacity to this method, to directly set the max starting size of Tweeners and Sequences:
- DOTween.Init(false, false, LogBehaviour.Default).SetCapacity(100, 20);
-
- If TRUE all new tweens will be set for recycling, meaning that when killed,
- instead of being destroyed, they will be put in a pool and reused instead of creating new tweens. This option allows you to avoid
- GC allocations by reusing tweens, but you will have to take care of tween references, since they might result active
- even if they were killed (since they might have been respawned and are now being used for other tweens).
- If you want to automatically set your tween references to NULL when a tween is killed
- you can use the OnKill callback like this:
- .OnKill(()=> myTweenReference = null)
- You can change this setting at any time by changing the static property,
- or you can set the recycling behaviour for each tween separately, using:
- SetRecyclable(bool recyclable)
- Default: FALSE
- If TRUE makes tweens slightly slower but safer, automatically taking care of a series of things
- (like targets becoming null while a tween is playing).
- You can change this setting at any time by changing the static property.
- Default: FALSE
- Type of logging to use.
- You can change this setting at any time by changing the static property.
- Default: ErrorsOnly
-
-
-
- Directly sets the current max capacity of Tweeners and Sequences
- (meaning how many Tweeners and Sequences can be running at the same time),
- so that DOTween doesn't need to automatically increase them in case the max is reached
- (which might lead to hiccups when that happens).
- Sequences capacity must be less or equal to Tweeners capacity
- (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
- Beware: use this method only when there are no tweens running.
-
- Max Tweeners capacity.
- Default: 200
- Max Sequences capacity.
- Default: 50
-
-
-
- Kills all tweens, clears all cached tween pools and plugins and resets the max Tweeners/Sequences capacities to the default values.
-
- If TRUE also destroys DOTween's gameObject and resets its initializiation, default settings and everything else
- (so that next time you use it it will need to be re-initialized)
-
-
-
- Clears all cached tween pools.
-
-
-
-
- Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
- and returns the total number of invalid tweens found and removed.
- Automatically called when loading a new scene if is TRUE.
- BEWARE: this is a slightly expensive operation so use it with care
-
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using a custom plugin
- The plugin to use. Each custom plugin implements a static Get() method
- you'll need to call to assign the correct plugin in the correct way, like this:
- CustomPlugin.Get()
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens only one axis of a Vector3 to the given value using default plugins.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
- The axis to tween
-
-
- Tweens only the alpha of a Color to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a virtual property from the given start to the given end value
- and implements a setter that allows to use that value with an external method or a lambda
- Example:
- To(MyMethod, 0, 12, 0.5f);
- Where MyMethod is a function that accepts a float parameter (which will be the result of the virtual tween)
- The action to perform with the tweened value
- The value to start from
- The end value to reach
- The duration of the virtual tween
-
-
-
- Punches a Vector3 towards the given direction and then back to the starting one
- as if it was connected to the starting position via an elastic.
- This tween type generates some GC allocations at startup
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The direction and strength of the punch
- The duration of the tween
- Indicates how much will the punch vibrate
- Represents how much (0 to 1) the vector will go beyond the starting position when bouncing backwards.
- 1 creates a full oscillation between the direction and the opposite decaying direction,
- while 0 oscillates only between the starting position and the decaying direction
-
-
- Shakes a Vector3 with the given values.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The duration of the tween
- The shake strength
- Indicates how much will the shake vibrate
- Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
- Setting it to 0 will shake along a single direction and behave like a random punch.
- If TRUE only shakes on the X Y axis (looks better with things like cameras).
-
-
- Shakes a Vector3 with the given values.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The duration of the tween
- The shake strength on each axis
- Indicates how much will the shake vibrate
- Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
- Setting it to 0 will shake along a single direction and behave like a random punch.
-
-
- Tweens a property or field to the given values using default plugins.
- Ease is applied between each segment and not as a whole.
- This tween type generates some GC allocations at startup
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end values to reach for each segment. This array must have the same length as durations
- The duration of each segment. This array must have the same length as endValues
-
-
-
- Returns a new to be used for tween groups
-
-
-
- Completes all tweens and returns the number of actual tweens completed
- (meaning tweens that don't have infinite loops and were not already complete)
-
-
- Completes all tweens with the given ID or target and returns the number of actual tweens completed
- (meaning the tweens that don't have infinite loops and were not already complete)
-
-
- Flips all tweens (changing their direction to forward if it was backwards and viceversa),
- then returns the number of actual tweens flipped
-
-
- Flips the tweens with the given ID or target (changing their direction to forward if it was backwards and viceversa),
- then returns the number of actual tweens flipped
-
-
- Sends all tweens to the given position (calculating also eventual loop cycles) and returns the actual tweens involved
-
-
- Sends all tweens with the given ID or target to the given position (calculating also eventual loop cycles)
- and returns the actual tweens involved
-
-
- Kills all tweens and returns the number of actual tweens killed
- If TRUE completes the tweens before killing them
-
-
- Kills all tweens with the given ID or target and returns the number of actual tweens killed
- If TRUE completes the tweens before killing them
-
-
- Pauses all tweens and returns the number of actual tweens paused
-
-
- Pauses all tweens with the given ID or target and returns the number of actual tweens paused
- (meaning the tweens that were actually playing and have been paused)
-
-
- Plays all tweens and returns the number of actual tweens played
- (meaning tweens that were not already playing or complete)
-
-
- Plays all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Plays all tweens with the given target and the given ID, and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Plays backwards all tweens and returns the number of actual tweens played
- (meaning tweens that were not already started, playing backwards or rewinded)
-
-
- Plays backwards all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already started, playing backwards or rewinded)
-
-
- Plays forward all tweens and returns the number of actual tweens played
- (meaning tweens that were not already playing forward or complete)
-
-
- Plays forward all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already playing forward or complete)
-
-
- Restarts all tweens, then returns the number of actual tweens restarted
-
-
- Restarts all tweens with the given ID or target, then returns the number of actual tweens restarted
-
-
- Restarts all tweens with the given target and the given ID, and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Rewinds and pauses all tweens, then returns the number of actual tweens rewinded
- (meaning tweens that were not already rewinded)
-
-
- Rewinds and pauses all tweens with the given ID or target, then returns the number of actual tweens rewinded
- (meaning the tweens that were not already rewinded)
-
-
- Smoothly rewinds all tweens (delays excluded), then returns the number of actual tweens rewinding/rewinded
- (meaning tweens that were not already rewinded).
- A "smooth rewind" animates the tween to its start position,
- skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
- Note that a tween that was smoothly rewinded will have its play direction flipped
-
-
- Smoothly rewinds all tweens (delays excluded) with the given ID or target, then returns the number of actual tweens rewinding/rewinded
- (meaning the tweens that were not already rewinded).
- A "smooth rewind" animates the tween to its start position,
- skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
- Note that a tween that was smoothly rewinded will have its play direction flipped
-
-
- Toggles the play state of all tweens and returns the number of actual tweens toggled
- (meaning tweens that could be played or paused, depending on the toggle state)
-
-
- Toggles the play state of all tweens with the given ID or target and returns the number of actual tweens toggled
- (meaning the tweens that could be played or paused, depending on the toggle state)
-
-
-
- Returns TRUE if a tween with the given ID or target is active (regardless if it's playing or not).
- You can also use this to know if a shortcut tween is active for a given target.
- Example:
- transform.DOMoveX(45, 1); // transform is automatically added as the tween target
- DOTween.IsTweening(transform); // Returns true
-
-
-
-
- Returns the total number of active and playing tweens.
- A tween is considered as playing even if its delay is actually playing
-
-
-
-
- Returns a list of all active tweens in a playing state.
- Returns NULL if there are no active playing tweens.
- Beware: each time you call this method a new list is generated, so use it for debug only
-
-
-
-
- Returns a list of all active tweens in a paused state.
- Returns NULL if there are no active paused tweens.
- Beware: each time you call this method a new list is generated, so use it for debug only
-
-
-
-
- Returns a list of all active tweens with the given id.
- Returns NULL if there are no active tweens with the given id.
- Beware: each time you call this method a new list is generated
- If TRUE returns only the tweens with the given ID that are currently playing
-
-
-
-
- Returns a list of all active tweens with the given target.
- Returns NULL if there are no active tweens with the given target.
- Beware: each time you call this method a new list is generated
- If TRUE returns only the tweens with the given target that are currently playing
-
-
-
- DOTween's log behaviour.
- Default: LogBehaviour.ErrorsOnly
-
-
-
- Path plugin works exclusively with Transforms
-
-
-
-
- Allows to wrap ease method in special ways, adding extra features
-
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- Ease type
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- AnimationCurve to use for the ease
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- Custom ease function to use
-
-
-
- Types of loop
-
-
-
- Each loop cycle restarts from the beginning
-
-
- The tween moves forward and backwards at alternate cycles
-
-
- 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".
- In case of String tweens works only if the tween is set as relative
+
+ Gets and sets the time position (loops included, delays excluded) of the tween
@@ -2058,200 +2234,24 @@
The new end value
If bigger than 0 applies it as the new tween duration
-
+
- Creates virtual tweens that can be used to change other elements via their OnUpdate calls
+ Used internally
-
+
- Tweens a virtual float.
- You can add regular settings to the generated tween,
- but do not use SetUpdate or you will overwrite the onVirtualUpdate parameter
-
- The value to start from
- The value to tween to
- The duration of the tween
- A callback which must accept a parameter of type float, called at each update
-
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
- Eventual overshoot to use with Back ease
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
- Eventual amplitude to use with Elastic easeType
- Eventual period to use with Elastic easeType
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The AnimationCurve to use for ease
-
-
- Fires the given callback after the given time.
- Callback delay
- Callback to fire when the delay has expired
- If TRUE (default) ignores Unity's timeScale
-
-
-
- Used to interpret AnimationCurves as eases.
- Public so it can be used by external ease factories
+ Update type
-
-
- This class contains a C# port of the easing equations created by Robert Penner (http://robertpenner.com/easing).
-
+
+ Updates every frame during Update calls
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
+
+ Updates every frame during LateUpdate calls
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
-
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
-
-
-
- Struct that stores two colors (used for LineRenderer tweens)
-
-
-
-
- What axis to constrain in case of Vector tweens
-
-
-
-
- Type of scramble to apply to string tweens
-
-
-
-
- No scrambling of characters
-
-
-
-
- A-Z + a-z + 0-9 characters
-
-
-
-
- A-Z characters
-
-
-
-
- a-z characters
-
-
-
-
- 0-9 characters
-
-
-
-
- Custom characters
-
-
-
-
- Path control point
-
-
-
-
- Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
-
-
-
-
- Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
-
-
-
-
- Returns a Vector3 with z = 0
-
-
-
-
- Returns the 2D angle between two vectors
-
-
-
-
- Gets the point on the path at the given percentage (0 to 1)
-
- The percentage (0 to 1) at which to get the point
- If TRUE constant speed is taken into account, otherwise not
-
-
-
- Public only so custom shortcuts can access some of these methods
-
+
+ Updates using FixedUpdate calls
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll
index 4210724..b0bb158 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb
index 73b8127..6ad404e 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll.mdb differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll
index 1aed027..1b7d9ee 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb
index 809713b..d446c58 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween43.dll.mdb differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll
index ea0b871..0298745 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb
index 0689185..5dbd96f 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.dll.mdb differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.xml b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.xml
index 3771132..8ba34f3 100644
--- a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.xml
+++ b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween46.xml
@@ -4,6 +4,17 @@
DOTween46
+
+
+ Various utils that require Unity 4.6 or later
+
+
+
+
+ Converts the anchoredPosition of the first RectTransform to the second RectTransform,
+ taking into consideration offset, anchors and pivot, and returns the new anchoredPosition
+
+
Methods that extend known Unity objects and allow to directly create and control tweens from their instances.
@@ -181,16 +192,5 @@
Also stores the Text as the tween's target so it can be used for filtered operations
The value to tween toThe duration of the tween
-
-
- Various utils that require Unity 4.6 or later
-
-
-
-
- Converts the anchoredPosition of the first RectTransform to the second RectTransform,
- taking into consideration offset, anchors and pivot, and returns the new anchoredPosition
-
-
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll
index afd0c94..13a2fc3 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb
index 4438b97..b517c01 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween50.dll.mdb differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML
index db17f44..6afe743 100644
--- a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML
+++ b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML
@@ -4,17 +4,6 @@
DOTweenEditor
-
-
- Not used as menu item anymore, but as a utiity function
-
-
-
-
- Setups DOTween
-
- If TRUE, no warning window appears in case there is no need for setup
-
Checks that the given editor texture use the correct import settings,
@@ -61,5 +50,16 @@
Full path for the given loaded assembly, assembly file included
+
+
+ Not used as menu item anymore, but as a utiity function
+
+
+
+
+ Setups DOTween
+
+ If TRUE, no warning window appears in case there is no need for setup
+
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll
index 7820f3b..d2ec7e2 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb
index fb8c228..544096d 100644
Binary files a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb and b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb differ
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/vs67D.tmp b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/vs67D.tmp
new file mode 100644
index 0000000..6afe743
--- /dev/null
+++ b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/vs67D.tmp
@@ -0,0 +1,65 @@
+
+
+
+ DOTweenEditor
+
+
+
+
+ Checks that the given editor texture use the correct import settings,
+ and applies them if they're incorrect.
+
+
+
+
+ Returns TRUE if addons setup is required.
+
+
+
+
+ Returns TRUE if the file/directory at the given path exists.
+
+ Path, relative to Unity's project folder
+
+
+
+
+ Converts the given project-relative path to a full path,
+ with backward (\) slashes).
+
+
+
+
+ Converts the given full path to a path usable with AssetDatabase methods
+ (relative to Unity's project folder, and with the correct Unity forward (/) slashes).
+
+
+
+
+ Connects to a asset.
+ If the asset already exists at the given path, loads it and returns it.
+ Otherwise, either returns NULL or automatically creates it before loading and returning it
+ (depending on the given parameters).
+
+ Asset type
+ File path (relative to Unity's project folder)
+ If TRUE and the requested asset doesn't exist, forces its creation
+
+
+
+ Full path for the given loaded assembly, assembly file included
+
+
+
+
+ Not used as menu item anymore, but as a utiity function
+
+
+
+
+ Setups DOTween
+
+ If TRUE, no warning window appears in case there is no need for setup
+
+
+
diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/vsBAE5.tmp b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/vsBAE5.tmp
new file mode 100644
index 0000000..db17f44
--- /dev/null
+++ b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/Editor/vsBAE5.tmp
@@ -0,0 +1,65 @@
+
+
+
+ DOTweenEditor
+
+
+
+
+ Not used as menu item anymore, but as a utiity function
+
+
+
+
+ Setups DOTween
+
+ If TRUE, no warning window appears in case there is no need for setup
+
+
+
+ Checks that the given editor texture use the correct import settings,
+ and applies them if they're incorrect.
+
+
+
+
+ Returns TRUE if addons setup is required.
+
+
+
+
+ Returns TRUE if the file/directory at the given path exists.
+
+ Path, relative to Unity's project folder
+
+
+
+
+ Converts the given project-relative path to a full path,
+ with backward (\) slashes).
+
+
+
+
+ Converts the given full path to a path usable with AssetDatabase methods
+ (relative to Unity's project folder, and with the correct Unity forward (/) slashes).
+
+
+
+
+ Connects to a asset.
+ If the asset already exists at the given path, loads it and returns it.
+ Otherwise, either returns NULL or automatically creates it before loading and returning it
+ (depending on the given parameters).
+
+ Asset type
+ File path (relative to Unity's project folder)
+ If TRUE and the requested asset doesn't exist, forces its creation
+
+
+
+ Full path for the given loaded assembly, assembly file included
+
+
+
+
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML
index d5a9cfc..ed3c17f 100644
--- a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML
+++ b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML
@@ -4,158 +4,45 @@
DOTween
-
+
- Update type
+ Types of autoPlay behaviours
-
- Updates every frame during Update calls
+
+ No tween is automatically played
-
- Updates every frame during LateUpdate calls
+
+ Only Sequences are automatically played
-
- Updates using FixedUpdate calls
+
+ Only Tweeners are automatically played
-
+
+ All tweens are automatically played
+
+
- Path mode (used to determine correct LookAt orientation)
+ What axis to constrain in case of Vector tweens
-
- Ignores the path mode (and thus LookAt behaviour)
+
+ Called the first time the tween is set in a playing state, after any eventual delay
-
- Regular 3D path
-
-
- 2D top-down path
-
-
- 2D side-scroller path
-
-
+
- Used internally
+ Used in place of System.Func, which is not available in mscorlib.
-
+
- This class serves only as a utility class to store tween settings to apply on multiple tweens.
- It is in no way needed otherwise, since you can directly apply tween settings to a tween via chaining
+ Used in place of System.Action.
-
- A variable you can eventually Clear and reuse when needed,
- to avoid instantiating TweenParams objects
-
-
- Creates a new TweenParams object, which you can use to store tween settings
- to pass to multiple tweens via myTween.SetAs(myTweenParms)
-
-
- Clears and resets this TweenParams instance using default values,
- so it can be reused without instantiating another one
-
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
- If TRUE the tween will be automatically killed when complete
-
-
- Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
- The ID to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
- IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
- When using shorcuts the shortcut target is already assigned as the tween's target,
- so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
- The target to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
- Loop behaviour type (default: LoopType.Restart)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual overshoot or amplitude to use with Back or Elastic easeType (default is 1.70158)
- Eventual period to use with Elastic easeType (default is 0)
-
-
- Sets the ease of the tween using an AnimationCurve.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween using a custom ease function.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the recycling behaviour for the tween.
- If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
-
-
- Sets the update type to the one defined in DOTween.defaultUpdateType (UpdateType.Normal unless changed)
- and lets you choose if it should be independent from Unity's Time.timeScale
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the type of update (default or independent) for the tween
- The type of update (default: UpdateType.Normal)
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the onStart callback for the tween.
- Called the first time the tween is set in a playing state, after any eventual delay
-
-
- Sets the onPlay callback for the tween.
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Sets the onRewind callback for the tween.
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Sets the onUpdate callback for the tween.
- Called each time the tween updates
-
-
- Sets the onStepComplete callback for the tween.
- Called the moment the tween completes one loop cycle, even when going backwards
-
-
- Sets the onComplete callback for the tween.
- Called the moment the tween reaches its final forward position, loops included
-
-
- Sets the onKill callback for the tween.
- Called the moment the tween is killed
-
-
- Sets the onWaypointChange callback for the tween.
- Called when a path tween reaches a new waypoint
-
-
- Sets a delayed startup for the tween.
- Has no effect on Sequences or if the tween has already started
-
-
- If isRelative is TRUE sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ Public so it can be used by lose scripts related to DOTween (like DOTweenAnimation)
+
@@ -163,6 +50,720 @@
Contains all instance-based methods
+
+ Used internally inside Unity Editor, as a trick to update DOTween's inspector at every frame
+
+
+
+ Directly sets the current max capacity of Tweeners and Sequences
+ (meaning how many Tweeners and Sequences can be running at the same time),
+ so that DOTween doesn't need to automatically increase them in case the max is reached
+ (which might lead to hiccups when that happens).
+ Sequences capacity must be less or equal to Tweeners capacity
+ (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
+ Beware: use this method only when there are no tweens running.
+
+ Max Tweeners capacity.
+ Default: 200
+ Max Sequences capacity.
+ Default: 50
+
+
+
+ This class contains a C# port of the easing equations created by Robert Penner (http://robertpenner.com/easing).
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
+
+
+
+
+ Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
+
+
+
+
+ Used to interpret AnimationCurves as eases.
+ Public so it can be used by external ease factories
+
+
+
+
+ Additional notices passed to plugins when updating.
+ Public so it can be used by custom plugins. Internally, only PathPlugin uses it
+
+
+
+
+ None
+
+
+
+
+ Lets the plugin know that we restarted or rewinded
+
+
+
+
+ Public only so custom shortcuts can access some of these methods
+
+
+
+
+ Returns a Vector3 with z = 0
+
+
+
+
+ Returns the 2D angle between two vectors
+
+
+
+
+ Struct that stores two colors (used for LineRenderer tweens)
+
+
+
+
+ Used for tween callbacks
+
+
+
+
+ Used for tween callbacks
+
+
+
+
+ Used for custom and animationCurve-based ease functions. Must return a value between 0 and 1.
+
+
+
+
+ Main DOTween class. Contains static methods to create and control tweens in a generic way
+
+
+
+ DOTween's version
+
+
+ If TRUE (default) makes tweens slightly slower but safer, automatically taking care of a series of things
+ (like targets becoming null while a tween is playing).
+ Default: TRUE
+
+
+ If TRUE you will get a DOTween report when exiting play mode (only in the Editor).
+ Useful to know how many max Tweeners and Sequences you reached and optimize your final project accordingly.
+ Beware, this will slightly slow down your tweens while inside Unity Editor.
+ Default: FALSE
+
+
+ Global DOTween timeScale.
+ Default: 1
+
+
+ If TRUE, DOTween will use Time.smoothDeltaTime instead of Time.deltaTime for UpdateType.Normal and UpdateType.Late tweens
+ (unless they're set as timeScaleIndependent, in which case this setting will be ignored).
+ Setting this to TRUE will lead to smoother animations.
+ Default: FALSE
+
+
+ DOTween's log behaviour.
+ Default: LogBehaviour.ErrorsOnly
+
+
+ If TRUE draws path gizmos in Unity Editor (if the gizmos button is active).
+ Deactivate this if you want to avoid gizmos overhead while in Unity Editor
+
+
+ Default updateType for new tweens.
+ Default: UpdateType.Normal
+
+
+ Sets whether Unity's timeScale should be taken into account by default or not.
+ Default: false
+
+
+ Default autoPlay behaviour for new tweens.
+ Default: AutoPlay.All
+
+
+ Default autoKillOnComplete behaviour for new tweens.
+ Default: TRUE
+
+
+ Default loopType applied to all new tweens.
+ Default: LoopType.Restart
+
+
+ If TRUE all newly created tweens are set as recyclable, otherwise not.
+ Default: FALSE
+
+
+ Default ease applied to all new Tweeners (not to Sequences which always have Ease.Linear as default).
+ Default: Ease.InOutQuad
+
+
+ Default overshoot/amplitude used for eases
+ Default: 1.70158f
+
+
+ Default period used for eases
+ Default: 0
+
+
+
+ Must be called once, before the first ever DOTween call/reference,
+ otherwise it will be called automatically and will use default options.
+ Calling it a second time won't have any effect.
+ You can chain SetCapacity to this method, to directly set the max starting size of Tweeners and Sequences:
+ DOTween.Init(false, false, LogBehaviour.Default).SetCapacity(100, 20);
+
+ If TRUE all new tweens will be set for recycling, meaning that when killed,
+ instead of being destroyed, they will be put in a pool and reused instead of creating new tweens. This option allows you to avoid
+ GC allocations by reusing tweens, but you will have to take care of tween references, since they might result active
+ even if they were killed (since they might have been respawned and are now being used for other tweens).
+ If you want to automatically set your tween references to NULL when a tween is killed
+ you can use the OnKill callback like this:
+ .OnKill(()=> myTweenReference = null)
+ You can change this setting at any time by changing the static property,
+ or you can set the recycling behaviour for each tween separately, using:
+ SetRecyclable(bool recyclable)
+ Default: FALSE
+ If TRUE makes tweens slightly slower but safer, automatically taking care of a series of things
+ (like targets becoming null while a tween is playing).
+ You can change this setting at any time by changing the static property.
+ Default: FALSE
+ Type of logging to use.
+ You can change this setting at any time by changing the static property.
+ Default: ErrorsOnly
+
+
+
+ Directly sets the current max capacity of Tweeners and Sequences
+ (meaning how many Tweeners and Sequences can be running at the same time),
+ so that DOTween doesn't need to automatically increase them in case the max is reached
+ (which might lead to hiccups when that happens).
+ Sequences capacity must be less or equal to Tweeners capacity
+ (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
+ Beware: use this method only when there are no tweens running.
+
+ Max Tweeners capacity.
+ Default: 200
+ Max Sequences capacity.
+ Default: 50
+
+
+
+ Kills all tweens, clears all cached tween pools and plugins and resets the max Tweeners/Sequences capacities to the default values.
+
+ If TRUE also destroys DOTween's gameObject and resets its initializiation, default settings and everything else
+ (so that next time you use it it will need to be re-initialized)
+
+
+
+ Clears all cached tween pools.
+
+
+
+
+ Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
+ and returns the total number of invalid tweens found and removed.
+ Automatically called when loading a new scene if is TRUE.
+ BEWARE: this is a slightly expensive operation so use it with care
+
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using a custom plugin
+ The plugin to use. Each custom plugin implements a static Get() method
+ you'll need to call to assign the correct plugin in the correct way, like this:
+ CustomPlugin.Get()
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens only one axis of a Vector3 to the given value using default plugins.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+ The axis to tween
+
+
+ Tweens only the alpha of a Color to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a virtual property from the given start to the given end value
+ and implements a setter that allows to use that value with an external method or a lambda
+ Example:
+ To(MyMethod, 0, 12, 0.5f);
+ Where MyMethod is a function that accepts a float parameter (which will be the result of the virtual tween)
+ The action to perform with the tweened value
+ The value to start from
+ The end value to reach
+ The duration of the virtual tween
+
+
+
+ Punches a Vector3 towards the given direction and then back to the starting one
+ as if it was connected to the starting position via an elastic.
+ This tween type generates some GC allocations at startup
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The direction and strength of the punch
+ The duration of the tween
+ Indicates how much will the punch vibrate
+ Represents how much (0 to 1) the vector will go beyond the starting position when bouncing backwards.
+ 1 creates a full oscillation between the direction and the opposite decaying direction,
+ while 0 oscillates only between the starting position and the decaying direction
+
+
+ Shakes a Vector3 with the given values.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The duration of the tween
+ The shake strength
+ Indicates how much will the shake vibrate
+ Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
+ Setting it to 0 will shake along a single direction and behave like a random punch.
+ If TRUE only shakes on the X Y axis (looks better with things like cameras).
+
+
+ Shakes a Vector3 with the given values.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The duration of the tween
+ The shake strength on each axis
+ Indicates how much will the shake vibrate
+ Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
+ Setting it to 0 will shake along a single direction and behave like a random punch.
+
+
+ Tweens a property or field to the given values using default plugins.
+ Ease is applied between each segment and not as a whole.
+ This tween type generates some GC allocations at startup
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end values to reach for each segment. This array must have the same length as durations
+ The duration of each segment. This array must have the same length as endValues
+
+
+
+ Returns a new to be used for tween groups
+
+
+
+ Completes all tweens and returns the number of actual tweens completed
+ (meaning tweens that don't have infinite loops and were not already complete)
+
+
+ Completes all tweens with the given ID or target and returns the number of actual tweens completed
+ (meaning the tweens that don't have infinite loops and were not already complete)
+
+
+ Flips all tweens (changing their direction to forward if it was backwards and viceversa),
+ then returns the number of actual tweens flipped
+
+
+ Flips the tweens with the given ID or target (changing their direction to forward if it was backwards and viceversa),
+ then returns the number of actual tweens flipped
+
+
+ Sends all tweens to the given position (calculating also eventual loop cycles) and returns the actual tweens involved
+
+
+ Sends all tweens with the given ID or target to the given position (calculating also eventual loop cycles)
+ and returns the actual tweens involved
+
+
+ Kills all tweens and returns the number of actual tweens killed
+ If TRUE completes the tweens before killing them
+
+
+ Kills all tweens with the given ID or target and returns the number of actual tweens killed
+ If TRUE completes the tweens before killing them
+
+
+ Pauses all tweens and returns the number of actual tweens paused
+
+
+ Pauses all tweens with the given ID or target and returns the number of actual tweens paused
+ (meaning the tweens that were actually playing and have been paused)
+
+
+ Plays all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already playing or complete)
+
+
+ Plays all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Plays all tweens with the given target and the given ID, and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Plays backwards all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already started, playing backwards or rewinded)
+
+
+ Plays backwards all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already started, playing backwards or rewinded)
+
+
+ Plays forward all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already playing forward or complete)
+
+
+ Plays forward all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already playing forward or complete)
+
+
+ Restarts all tweens, then returns the number of actual tweens restarted
+
+
+ Restarts all tweens with the given ID or target, then returns the number of actual tweens restarted
+
+
+ Restarts all tweens with the given target and the given ID, and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Rewinds and pauses all tweens, then returns the number of actual tweens rewinded
+ (meaning tweens that were not already rewinded)
+
+
+ Rewinds and pauses all tweens with the given ID or target, then returns the number of actual tweens rewinded
+ (meaning the tweens that were not already rewinded)
+
+
+ Smoothly rewinds all tweens (delays excluded), then returns the number of actual tweens rewinding/rewinded
+ (meaning tweens that were not already rewinded).
+ A "smooth rewind" animates the tween to its start position,
+ skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
+ Note that a tween that was smoothly rewinded will have its play direction flipped
+
+
+ Smoothly rewinds all tweens (delays excluded) with the given ID or target, then returns the number of actual tweens rewinding/rewinded
+ (meaning the tweens that were not already rewinded).
+ A "smooth rewind" animates the tween to its start position,
+ skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
+ Note that a tween that was smoothly rewinded will have its play direction flipped
+
+
+ Toggles the play state of all tweens and returns the number of actual tweens toggled
+ (meaning tweens that could be played or paused, depending on the toggle state)
+
+
+ Toggles the play state of all tweens with the given ID or target and returns the number of actual tweens toggled
+ (meaning the tweens that could be played or paused, depending on the toggle state)
+
+
+
+ Returns TRUE if a tween with the given ID or target is active (regardless if it's playing or not).
+ You can also use this to know if a shortcut tween is active for a given target.
+ Example:
+ transform.DOMoveX(45, 1); // transform is automatically added as the tween target
+ DOTween.IsTweening(transform); // Returns true
+
+
+
+
+ Returns the total number of active and playing tweens.
+ A tween is considered as playing even if its delay is actually playing
+
+
+
+
+ Returns a list of all active tweens in a playing state.
+ Returns NULL if there are no active playing tweens.
+ Beware: each time you call this method a new list is generated, so use it for debug only
+
+
+
+
+ Returns a list of all active tweens in a paused state.
+ Returns NULL if there are no active paused tweens.
+ Beware: each time you call this method a new list is generated, so use it for debug only
+
+
+
+
+ Returns a list of all active tweens with the given id.
+ Returns NULL if there are no active tweens with the given id.
+ Beware: each time you call this method a new list is generated
+ If TRUE returns only the tweens with the given ID that are currently playing
+
+
+
+
+ Returns a list of all active tweens with the given target.
+ Returns NULL if there are no active tweens with the given target.
+ Beware: each time you call this method a new list is generated
+ If TRUE returns only the tweens with the given target that are currently playing
+
+
+
+
+ Creates virtual tweens that can be used to change other elements via their OnUpdate calls
+
+
+
+
+ Tweens a virtual float.
+ You can add regular settings to the generated tween,
+ but do not use SetUpdate or you will overwrite the onVirtualUpdate parameter
+
+ The value to start from
+ The value to tween to
+ The duration of the tween
+ A callback which must accept a parameter of type float, called at each update
+
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+ Eventual overshoot to use with Back ease
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+ Eventual amplitude to use with Elastic easeType
+ Eventual period to use with Elastic easeType
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The AnimationCurve to use for ease
+
+
+ Fires the given callback after the given time.
+ Callback delay
+ Callback to fire when the delay has expired
+ If TRUE (default) ignores Unity's timeScale
+
+
+
+ Don't assign this! It's assigned automatically when creating 0 duration tweens
+
+
+
+
+ Don't assign this! It's assigned automatically when setting the ease to an AnimationCurve or to a custom ease function
+
+
+
+
+ Allows to wrap ease method in special ways, adding extra features
+
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ Ease type
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ AnimationCurve to use for the ease
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ Custom ease function to use
+
Used to allow method chaining with DOTween.Init
@@ -183,84 +784,55 @@
Max Sequences capacity.
Default: 50
-
- Used internally inside Unity Editor, as a trick to update DOTween's inspector at every frame
-
-
+
- Directly sets the current max capacity of Tweeners and Sequences
- (meaning how many Tweeners and Sequences can be running at the same time),
- so that DOTween doesn't need to automatically increase them in case the max is reached
- (which might lead to hiccups when that happens).
- Sequences capacity must be less or equal to Tweeners capacity
- (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
- Beware: use this method only when there are no tweens running.
-
- Max Tweeners capacity.
- Default: 200
- Max Sequences capacity.
- Default: 50
-
-
-
- Public so it can be used by lose scripts related to DOTween (like DOTweenAnimation)
+ Path mode (used to determine correct LookAt orientation)
-
+
+ Ignores the path mode (and thus LookAt behaviour)
+
+
+ Regular 3D path
+
+
+ 2D top-down path
+
+
+ 2D side-scroller path
+
+
- Controls other tweens as a group
+ Type of path to use with DOPath tweens
-
+
+ Linear, composed of straight segments between each waypoint
+
+
+ Curved path (which uses Catmull-Rom curves)
+
+
- Indicates either a Tweener or a Sequence
+ Path control point
-
- Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Gets the point on the path at the given percentage (0 to 1)
+
+ The percentage (0 to 1) at which to get the point
+ If TRUE constant speed is taken into account, otherwise not
-
- TimeScale for the tween
+
+
+ This plugin generates some GC allocations at startup
+
-
- If TRUE the tween wil go backwards
-
-
- Id (usable for filtering with DOTween static methods). Can be an int, a string, an object, or anything else
-
-
- Tween target (usable for filtering with DOTween static methods). Automatically set by tween creation shorcuts
-
-
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Called when the tween state changes from playing to paused.
- If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
-
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Called each time the tween updates
-
-
- Called the moment the tween completes one loop cycle
-
-
- Called the moment the tween reaches completion (loops included)
-
-
- Called the moment the tween is killed
-
-
- Called when a path tween's current waypoint changes
-
-
- Gets and sets the time position (loops included, delays excluded) of the tween
+
+
+ Path plugin works exclusively with Transforms
+
@@ -291,349 +863,40 @@
In this mode the end value is is always considered relative
-
+
- This plugin generates some GC allocations at startup
+ Type of scramble to apply to string tweens
-
+
- Don't assign this! It's assigned automatically when creating 0 duration tweens
+ No scrambling of characters
-
+
- Don't assign this! It's assigned automatically when setting the ease to an AnimationCurve or to a custom ease function
+ A-Z + a-z + 0-9 characters
-
+
- Types of log behaviours
+ A-Z characters
-
- Log only warnings and errors
-
-
- Log warnings, errors and additional infos
-
-
- Log only errors
-
-
+
- Methods that extend Tween objects and allow to set their parameters
+ a-z characters
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
+
+
+ 0-9 characters
+
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
- If TRUE the tween will be automatically killed when complete
-
-
- Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
- The ID to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
- IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
- When using shorcuts the shortcut target is already assigned as the tween's target,
- so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
- The target to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
- Loop behaviour type (default: LoopType.Restart)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual overshoot to use with Back ease (default is 1.70158)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual amplitude to use with Elastic easeType (default is 1.70158)
- Eventual period to use with Elastic easeType (default is 0)
-
-
- Sets the ease of the tween using an AnimationCurve.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween using a custom ease function (which must return a value between 0 and 1).
- If applied to Sequences eases the whole sequence animation
-
-
- Allows the tween to be recycled after being killed.
-
-
- Sets the recycling behaviour for the tween.
- If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
-
-
- Sets the update type to UpdateType.Normal and lets you choose if it should be independent from Unity's Time.timeScale
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the type of update for the tween
- The type of update (defalt: UpdateType.Normal)
-
-
- Sets the type of update for the tween and lets you choose if it should be independent from Unity's Time.timeScale
- The type of update
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the onStart callback for the tween.
- Called the first time the tween is set in a playing state, after any eventual delay
-
-
- Sets the onPlay callback for the tween.
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Sets the onPlay callback for the tween.
- Called when the tween state changes from playing to paused.
- If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
-
- Sets the onRewind callback for the tween.
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Sets the onUpdate callback for the tween.
- Called each time the tween updates
-
-
- Sets the onStepComplete callback for the tween.
- Called the moment the tween completes one loop cycle, even when going backwards
-
-
- Sets the onComplete callback for the tween.
- Called the moment the tween reaches its final forward position, loops included
-
-
- Sets the onKill callback for the tween.
- Called the moment the tween is killed
-
-
- Sets the onWaypointChange callback for the tween.
- Called when a path tween's current waypoint changes
-
-
- Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given one.
- Doesn't copy specific SetOptions settings: those will need to be applied manually each time.
- Has no effect if the tween has already started.
- NOTE: the tween's target will not be changed
- Tween from which to copy the parameters
-
-
- Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given TweenParams.
- Has no effect if the tween has already started.
- TweenParams from which to copy the parameters
-
-
- Adds the given tween to the end of the Sequence.
- Has no effect if the Sequence has already started
- The tween to append
-
-
- Adds the given tween to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The tween to prepend
-
-
- Inserts the given tween at the same time position of the last tween added to the Sequence.
- Has no effect if the Sequence has already started
-
-
- Inserts the given tween at the given time position in the Sequence,
- automatically adding an interval if needed.
- Has no effect if the Sequence has already started
- The time position where the tween will be placed
- The tween to insert
-
-
- Adds the given interval to the end of the Sequence.
- Has no effect if the Sequence has already started
- The interval duration
-
-
- Adds the given interval to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The interval duration
-
-
- Adds the given callback to the end of the Sequence.
- Has no effect if the Sequence has already started
- The callback to append
-
-
- Adds the given callback to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The callback to prepend
-
-
- Inserts the given callback at the given time position in the Sequence,
- automatically adding an interval if needed.
- Has no effect if the Sequence has already started
- The time position where the callback will be placed
- The callback to insert
-
-
- Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
- then immediately sends the target to the previously set endValue.
-
-
- Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
- then immediately sends the target to the previously set endValue.
- If TRUE the FROM value will be calculated as relative to the current one
-
-
- Sets a delayed startup for the tween.
- Has no effect on Sequences or if the tween has already started
-
-
- Sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isRelative is TRUE sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
-
-
- Options for float tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector2 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector2 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Quaternion tweens
- If TRUE (default) the rotation will take the shortest route, and will not rotate more than 360°.
- If FALSE the rotation will be fully accounted. Is always FALSE if the tween is set as relative
-
-
- Options for Color tweens
- If TRUE only the alpha value of the color will be tweened
-
-
- Options for Vector4 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- If TRUE, rich text will be interpreted correctly while animated,
- otherwise all tags will be considered as normal text
- The type of scramble to use, if any
- A string containing the characters to use for scrambling.
- Use as many characters as possible (minimum 10) because DOTween uses a fast scramble mode which gives better results with more characters.
- Leave it to NULL to use default ones
-
-
- Options for Vector3Array tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3Array tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Path tweens (created via the DOPath shortcut)
- The eventual movement axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
- The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
-
-
- Options for Path tweens (created via the DOPath shortcut)
- If TRUE the path will be automatically closed
- The eventual movement axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
- The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target towards the given position.
- Must be chained directly to the tween creation method or to a SetOptions
- The position to look at
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target towards another transform.
- Must be chained directly to the tween creation method or to a SetOptions
- The transform to look at
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target to the path, with the given lookAhead.
- Must be chained directly to the tween creation method or to a SetOptions
- The percentage of lookAhead to use (0 to 1)
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Custom characters
+
@@ -822,48 +1085,26 @@
You can force a path to be initialized by calling myTween.ForceInit().
-
+
- Used for tween callbacks
+ Types of loop
-
+
+ Each loop cycle restarts from the beginning
+
+
+ The tween moves forward and backwards at alternate cycles
+
+
+ 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".
+ In case of String tweens works only if the tween is set as relative
+
+
- Used for tween callbacks
+ Controls other tweens as a group
-
-
- Used for custom and animationCurve-based ease functions. Must return a value between 0 and 1.
-
-
-
-
- Used in place of System.Func, which is not available in mscorlib.
-
-
-
-
- Used in place of System.Action.
-
-
-
-
- Types of autoPlay behaviours
-
-
-
- No tween is automatically played
-
-
- Only Sequences are automatically played
-
-
- Only Tweeners are automatically played
-
-
- All tweens are automatically played
-
Methods that extend known Unity objects and allow to directly create and control tweens from their instances
@@ -1468,564 +1709,499 @@
and returns the total number of tweens involved.
-
+
- Additional notices passed to plugins when updating.
- Public so it can be used by custom plugins. Internally, only PathPlugin uses it
+ This class serves only as a utility class to store tween settings to apply on multiple tweens.
+ It is in no way needed otherwise, since you can directly apply tween settings to a tween via chaining
-
+
+ A variable you can eventually Clear and reuse when needed,
+ to avoid instantiating TweenParams objects
+
+
+ Creates a new TweenParams object, which you can use to store tween settings
+ to pass to multiple tweens via myTween.SetAs(myTweenParms)
+
+
+ Clears and resets this TweenParams instance using default values,
+ so it can be reused without instantiating another one
+
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+ If TRUE the tween will be automatically killed when complete
+
+
+ Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
+ The ID to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
+ IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
+ When using shorcuts the shortcut target is already assigned as the tween's target,
+ so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
+ The target to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+ Loop behaviour type (default: LoopType.Restart)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual overshoot or amplitude to use with Back or Elastic easeType (default is 1.70158)
+ Eventual period to use with Elastic easeType (default is 0)
+
+
+ Sets the ease of the tween using an AnimationCurve.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween using a custom ease function.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the recycling behaviour for the tween.
+ If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
+
+
+ Sets the update type to the one defined in DOTween.defaultUpdateType (UpdateType.Normal unless changed)
+ and lets you choose if it should be independent from Unity's Time.timeScale
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the type of update (default or independent) for the tween
+ The type of update (default: UpdateType.Normal)
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the onStart callback for the tween.
+ Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
+
+
+ Sets the onRewind callback for the tween.
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
+
+
+ Sets the onUpdate callback for the tween.
+ Called each time the tween updates
+
+
+ Sets the onStepComplete callback for the tween.
+ Called the moment the tween completes one loop cycle, even when going backwards
+
+
+ Sets the onComplete callback for the tween.
+ Called the moment the tween reaches its final forward position, loops included
+
+
+ Sets the onKill callback for the tween.
+ Called the moment the tween is killed
+
+
+ Sets the onWaypointChange callback for the tween.
+ Called when a path tween reaches a new waypoint
+
+
+ Sets a delayed startup for the tween.
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isRelative is TRUE sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
- None
+ Methods that extend Tween objects and allow to set their parameters
-
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+ If TRUE the tween will be automatically killed when complete
+
+
+ Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
+ The ID to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
+ IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
+ When using shorcuts the shortcut target is already assigned as the tween's target,
+ so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
+ The target to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+ Loop behaviour type (default: LoopType.Restart)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual overshoot to use with Back ease (default is 1.70158)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual amplitude to use with Elastic easeType (default is 1.70158)
+ Eventual period to use with Elastic easeType (default is 0)
+
+
+ Sets the ease of the tween using an AnimationCurve.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween using a custom ease function (which must return a value between 0 and 1).
+ If applied to Sequences eases the whole sequence animation
+
+
+ Allows the tween to be recycled after being killed.
+
+
+ Sets the recycling behaviour for the tween.
+ If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
+
+
+ Sets the update type to UpdateType.Normal and lets you choose if it should be independent from Unity's Time.timeScale
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the type of update for the tween
+ The type of update (defalt: UpdateType.Normal)
+
+
+ Sets the type of update for the tween and lets you choose if it should be independent from Unity's Time.timeScale
+ The type of update
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the onStart callback for the tween.
+ Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween state changes from playing to paused.
+ If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
+
+
+ Sets the onRewind callback for the tween.
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
+
+
+ Sets the onUpdate callback for the tween.
+ Called each time the tween updates
+
+
+ Sets the onStepComplete callback for the tween.
+ Called the moment the tween completes one loop cycle, even when going backwards
+
+
+ Sets the onComplete callback for the tween.
+ Called the moment the tween reaches its final forward position, loops included
+
+
+ Sets the onKill callback for the tween.
+ Called the moment the tween is killed
+
+
+ Sets the onWaypointChange callback for the tween.
+ Called when a path tween's current waypoint changes
+
+
+ Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given one.
+ Doesn't copy specific SetOptions settings: those will need to be applied manually each time.
+ Has no effect if the tween has already started.
+ NOTE: the tween's target will not be changed
+ Tween from which to copy the parameters
+
+
+ Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given TweenParams.
+ Has no effect if the tween has already started.
+ TweenParams from which to copy the parameters
+
+
+ Adds the given tween to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The tween to append
+
+
+ Adds the given tween to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The tween to prepend
+
+
+ Inserts the given tween at the same time position of the last tween added to the Sequence.
+ Has no effect if the Sequence has already started
+
+
+ Inserts the given tween at the given time position in the Sequence,
+ automatically adding an interval if needed.
+ Has no effect if the Sequence has already started
+ The time position where the tween will be placed
+ The tween to insert
+
+
+ Adds the given interval to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The interval duration
+
+
+ Adds the given interval to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The interval duration
+
+
+ Adds the given callback to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The callback to append
+
+
+ Adds the given callback to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The callback to prepend
+
+
+ Inserts the given callback at the given time position in the Sequence,
+ automatically adding an interval if needed.
+ Has no effect if the Sequence has already started
+ The time position where the callback will be placed
+ The callback to insert
+
+
+ Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
+ then immediately sends the target to the previously set endValue.
+
+
+ Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
+ then immediately sends the target to the previously set endValue.
+ If TRUE the FROM value will be calculated as relative to the current one
+
+
+ Sets a delayed startup for the tween.
+ Has no effect on Sequences or if the tween has already started
+
+
+ Sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isRelative is TRUE sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ Options for float tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector2 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector2 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Quaternion tweens
+ If TRUE (default) the rotation will take the shortest route, and will not rotate more than 360°.
+ If FALSE the rotation will be fully accounted. Is always FALSE if the tween is set as relative
+
+
+ Options for Color tweens
+ If TRUE only the alpha value of the color will be tweened
+
+
+ Options for Vector4 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ If TRUE, rich text will be interpreted correctly while animated,
+ otherwise all tags will be considered as normal text
+ The type of scramble to use, if any
+ A string containing the characters to use for scrambling.
+ Use as many characters as possible (minimum 10) because DOTween uses a fast scramble mode which gives better results with more characters.
+ Leave it to NULL to use default ones
+
+
+ Options for Vector3Array tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3Array tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Path tweens (created via the DOPath shortcut)
+ The eventual movement axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+ The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+
+
+ Options for Path tweens (created via the DOPath shortcut)
+ If TRUE the path will be automatically closed
+ The eventual movement axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+ The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target towards the given position.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The position to look at
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target towards another transform.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The transform to look at
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target to the path, with the given lookAhead.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The percentage of lookAhead to use (0 to 1)
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
- Lets the plugin know that we restarted or rewinded
+ Types of log behaviours
-
+
+ Log only warnings and errors
+
+
+ Log warnings, errors and additional infos
+
+
+ Log only errors
+
+
- Type of path to use with DOPath tweens
+ Indicates either a Tweener or a Sequence
-
- Linear, composed of straight segments between each waypoint
+
+ TimeScale for the tween
-
- Curved path (which uses Catmull-Rom curves)
+
+ If TRUE the tween wil go backwards
-
-
- Main DOTween class. Contains static methods to create and control tweens in a generic way
-
+
+ Id (usable for filtering with DOTween static methods). Can be an int, a string, an object, or anything else
-
- DOTween's version
+
+ Tween target (usable for filtering with DOTween static methods). Automatically set by tween creation shorcuts
-
- If TRUE (default) makes tweens slightly slower but safer, automatically taking care of a series of things
- (like targets becoming null while a tween is playing).
- Default: TRUE
+
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
-
- If TRUE you will get a DOTween report when exiting play mode (only in the Editor).
- Useful to know how many max Tweeners and Sequences you reached and optimize your final project accordingly.
- Beware, this will slightly slow down your tweens while inside Unity Editor.
- Default: FALSE
+
+ Called when the tween state changes from playing to paused.
+ If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
- Global DOTween timeScale.
- Default: 1
+
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
-
- If TRUE, DOTween will use Time.smoothDeltaTime instead of Time.deltaTime for UpdateType.Normal and UpdateType.Late tweens
- (unless they're set as timeScaleIndependent, in which case this setting will be ignored).
- Setting this to TRUE will lead to smoother animations.
- Default: FALSE
+
+ Called each time the tween updates
-
- If TRUE draws path gizmos in Unity Editor (if the gizmos button is active).
- Deactivate this if you want to avoid gizmos overhead while in Unity Editor
+
+ Called the moment the tween completes one loop cycle
-
- Default updateType for new tweens.
- Default: UpdateType.Normal
+
+ Called the moment the tween reaches completion (loops included)
-
- Sets whether Unity's timeScale should be taken into account by default or not.
- Default: false
+
+ Called the moment the tween is killed
-
- Default autoPlay behaviour for new tweens.
- Default: AutoPlay.All
+
+ Called when a path tween's current waypoint changes
-
- Default autoKillOnComplete behaviour for new tweens.
- Default: TRUE
-
-
- Default loopType applied to all new tweens.
- Default: LoopType.Restart
-
-
- If TRUE all newly created tweens are set as recyclable, otherwise not.
- Default: FALSE
-
-
- Default ease applied to all new Tweeners (not to Sequences which always have Ease.Linear as default).
- Default: Ease.InOutQuad
-
-
- Default overshoot/amplitude used for eases
- Default: 1.70158f
-
-
- Default period used for eases
- Default: 0
-
-
-
- Must be called once, before the first ever DOTween call/reference,
- otherwise it will be called automatically and will use default options.
- Calling it a second time won't have any effect.
- You can chain SetCapacity to this method, to directly set the max starting size of Tweeners and Sequences:
- DOTween.Init(false, false, LogBehaviour.Default).SetCapacity(100, 20);
-
- If TRUE all new tweens will be set for recycling, meaning that when killed,
- instead of being destroyed, they will be put in a pool and reused instead of creating new tweens. This option allows you to avoid
- GC allocations by reusing tweens, but you will have to take care of tween references, since they might result active
- even if they were killed (since they might have been respawned and are now being used for other tweens).
- If you want to automatically set your tween references to NULL when a tween is killed
- you can use the OnKill callback like this:
- .OnKill(()=> myTweenReference = null)
- You can change this setting at any time by changing the static property,
- or you can set the recycling behaviour for each tween separately, using:
- SetRecyclable(bool recyclable)
- Default: FALSE
- If TRUE makes tweens slightly slower but safer, automatically taking care of a series of things
- (like targets becoming null while a tween is playing).
- You can change this setting at any time by changing the static property.
- Default: FALSE
- Type of logging to use.
- You can change this setting at any time by changing the static property.
- Default: ErrorsOnly
-
-
-
- Directly sets the current max capacity of Tweeners and Sequences
- (meaning how many Tweeners and Sequences can be running at the same time),
- so that DOTween doesn't need to automatically increase them in case the max is reached
- (which might lead to hiccups when that happens).
- Sequences capacity must be less or equal to Tweeners capacity
- (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
- Beware: use this method only when there are no tweens running.
-
- Max Tweeners capacity.
- Default: 200
- Max Sequences capacity.
- Default: 50
-
-
-
- Kills all tweens, clears all cached tween pools and plugins and resets the max Tweeners/Sequences capacities to the default values.
-
- If TRUE also destroys DOTween's gameObject and resets its initializiation, default settings and everything else
- (so that next time you use it it will need to be re-initialized)
-
-
-
- Clears all cached tween pools.
-
-
-
-
- Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
- and returns the total number of invalid tweens found and removed.
- Automatically called when loading a new scene if is TRUE.
- BEWARE: this is a slightly expensive operation so use it with care
-
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using a custom plugin
- The plugin to use. Each custom plugin implements a static Get() method
- you'll need to call to assign the correct plugin in the correct way, like this:
- CustomPlugin.Get()
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens only one axis of a Vector3 to the given value using default plugins.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
- The axis to tween
-
-
- Tweens only the alpha of a Color to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a virtual property from the given start to the given end value
- and implements a setter that allows to use that value with an external method or a lambda
- Example:
- To(MyMethod, 0, 12, 0.5f);
- Where MyMethod is a function that accepts a float parameter (which will be the result of the virtual tween)
- The action to perform with the tweened value
- The value to start from
- The end value to reach
- The duration of the virtual tween
-
-
-
- Punches a Vector3 towards the given direction and then back to the starting one
- as if it was connected to the starting position via an elastic.
- This tween type generates some GC allocations at startup
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The direction and strength of the punch
- The duration of the tween
- Indicates how much will the punch vibrate
- Represents how much (0 to 1) the vector will go beyond the starting position when bouncing backwards.
- 1 creates a full oscillation between the direction and the opposite decaying direction,
- while 0 oscillates only between the starting position and the decaying direction
-
-
- Shakes a Vector3 with the given values.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The duration of the tween
- The shake strength
- Indicates how much will the shake vibrate
- Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
- Setting it to 0 will shake along a single direction and behave like a random punch.
- If TRUE only shakes on the X Y axis (looks better with things like cameras).
-
-
- Shakes a Vector3 with the given values.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The duration of the tween
- The shake strength on each axis
- Indicates how much will the shake vibrate
- Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
- Setting it to 0 will shake along a single direction and behave like a random punch.
-
-
- Tweens a property or field to the given values using default plugins.
- Ease is applied between each segment and not as a whole.
- This tween type generates some GC allocations at startup
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end values to reach for each segment. This array must have the same length as durations
- The duration of each segment. This array must have the same length as endValues
-
-
-
- Returns a new to be used for tween groups
-
-
-
- Completes all tweens and returns the number of actual tweens completed
- (meaning tweens that don't have infinite loops and were not already complete)
-
-
- Completes all tweens with the given ID or target and returns the number of actual tweens completed
- (meaning the tweens that don't have infinite loops and were not already complete)
-
-
- Flips all tweens (changing their direction to forward if it was backwards and viceversa),
- then returns the number of actual tweens flipped
-
-
- Flips the tweens with the given ID or target (changing their direction to forward if it was backwards and viceversa),
- then returns the number of actual tweens flipped
-
-
- Sends all tweens to the given position (calculating also eventual loop cycles) and returns the actual tweens involved
-
-
- Sends all tweens with the given ID or target to the given position (calculating also eventual loop cycles)
- and returns the actual tweens involved
-
-
- Kills all tweens and returns the number of actual tweens killed
- If TRUE completes the tweens before killing them
-
-
- Kills all tweens with the given ID or target and returns the number of actual tweens killed
- If TRUE completes the tweens before killing them
-
-
- Pauses all tweens and returns the number of actual tweens paused
-
-
- Pauses all tweens with the given ID or target and returns the number of actual tweens paused
- (meaning the tweens that were actually playing and have been paused)
-
-
- Plays all tweens and returns the number of actual tweens played
- (meaning tweens that were not already playing or complete)
-
-
- Plays all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Plays all tweens with the given target and the given ID, and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Plays backwards all tweens and returns the number of actual tweens played
- (meaning tweens that were not already started, playing backwards or rewinded)
-
-
- Plays backwards all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already started, playing backwards or rewinded)
-
-
- Plays forward all tweens and returns the number of actual tweens played
- (meaning tweens that were not already playing forward or complete)
-
-
- Plays forward all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already playing forward or complete)
-
-
- Restarts all tweens, then returns the number of actual tweens restarted
-
-
- Restarts all tweens with the given ID or target, then returns the number of actual tweens restarted
-
-
- Restarts all tweens with the given target and the given ID, and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Rewinds and pauses all tweens, then returns the number of actual tweens rewinded
- (meaning tweens that were not already rewinded)
-
-
- Rewinds and pauses all tweens with the given ID or target, then returns the number of actual tweens rewinded
- (meaning the tweens that were not already rewinded)
-
-
- Smoothly rewinds all tweens (delays excluded), then returns the number of actual tweens rewinding/rewinded
- (meaning tweens that were not already rewinded).
- A "smooth rewind" animates the tween to its start position,
- skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
- Note that a tween that was smoothly rewinded will have its play direction flipped
-
-
- Smoothly rewinds all tweens (delays excluded) with the given ID or target, then returns the number of actual tweens rewinding/rewinded
- (meaning the tweens that were not already rewinded).
- A "smooth rewind" animates the tween to its start position,
- skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
- Note that a tween that was smoothly rewinded will have its play direction flipped
-
-
- Toggles the play state of all tweens and returns the number of actual tweens toggled
- (meaning tweens that could be played or paused, depending on the toggle state)
-
-
- Toggles the play state of all tweens with the given ID or target and returns the number of actual tweens toggled
- (meaning the tweens that could be played or paused, depending on the toggle state)
-
-
-
- Returns TRUE if a tween with the given ID or target is active (regardless if it's playing or not).
- You can also use this to know if a shortcut tween is active for a given target.
- Example:
- transform.DOMoveX(45, 1); // transform is automatically added as the tween target
- DOTween.IsTweening(transform); // Returns true
-
-
-
-
- Returns the total number of active and playing tweens.
- A tween is considered as playing even if its delay is actually playing
-
-
-
-
- Returns a list of all active tweens in a playing state.
- Returns NULL if there are no active playing tweens.
- Beware: each time you call this method a new list is generated, so use it for debug only
-
-
-
-
- Returns a list of all active tweens in a paused state.
- Returns NULL if there are no active paused tweens.
- Beware: each time you call this method a new list is generated, so use it for debug only
-
-
-
-
- Returns a list of all active tweens with the given id.
- Returns NULL if there are no active tweens with the given id.
- Beware: each time you call this method a new list is generated
- If TRUE returns only the tweens with the given ID that are currently playing
-
-
-
-
- Returns a list of all active tweens with the given target.
- Returns NULL if there are no active tweens with the given target.
- Beware: each time you call this method a new list is generated
- If TRUE returns only the tweens with the given target that are currently playing
-
-
-
- DOTween's log behaviour.
- Default: LogBehaviour.ErrorsOnly
-
-
-
- Path plugin works exclusively with Transforms
-
-
-
-
- Allows to wrap ease method in special ways, adding extra features
-
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- Ease type
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- AnimationCurve to use for the ease
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- Custom ease function to use
-
-
-
- Types of loop
-
-
-
- Each loop cycle restarts from the beginning
-
-
- The tween moves forward and backwards at alternate cycles
-
-
- 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".
- In case of String tweens works only if the tween is set as relative
+
+ Gets and sets the time position (loops included, delays excluded) of the tween
@@ -2058,200 +2234,24 @@
The new end value
If bigger than 0 applies it as the new tween duration
-
+
- Creates virtual tweens that can be used to change other elements via their OnUpdate calls
+ Used internally
-
+
- Tweens a virtual float.
- You can add regular settings to the generated tween,
- but do not use SetUpdate or you will overwrite the onVirtualUpdate parameter
-
- The value to start from
- The value to tween to
- The duration of the tween
- A callback which must accept a parameter of type float, called at each update
-
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
- Eventual overshoot to use with Back ease
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
- Eventual amplitude to use with Elastic easeType
- Eventual period to use with Elastic easeType
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The AnimationCurve to use for ease
-
-
- Fires the given callback after the given time.
- Callback delay
- Callback to fire when the delay has expired
- If TRUE (default) ignores Unity's timeScale
-
-
-
- Used to interpret AnimationCurves as eases.
- Public so it can be used by external ease factories
+ Update type
-
-
- This class contains a C# port of the easing equations created by Robert Penner (http://robertpenner.com/easing).
-
+
+ Updates every frame during Update calls
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
+
+ Updates every frame during LateUpdate calls
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
-
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
-
-
-
- Struct that stores two colors (used for LineRenderer tweens)
-
-
-
-
- What axis to constrain in case of Vector tweens
-
-
-
-
- Type of scramble to apply to string tweens
-
-
-
-
- No scrambling of characters
-
-
-
-
- A-Z + a-z + 0-9 characters
-
-
-
-
- A-Z characters
-
-
-
-
- a-z characters
-
-
-
-
- 0-9 characters
-
-
-
-
- Custom characters
-
-
-
-
- Path control point
-
-
-
-
- Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
-
-
-
-
- Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
-
-
-
-
- Returns a Vector3 with z = 0
-
-
-
-
- Returns the 2D angle between two vectors
-
-
-
-
- Gets the point on the path at the given percentage (0 to 1)
-
- The percentage (0 to 1) at which to get the point
- If TRUE constant speed is taken into account, otherwise not
-
-
-
- Public only so custom shortcuts can access some of these methods
-
+
+ Updates using FixedUpdate calls
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll
index 4210724..b0bb158 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb
index 73b8127..6ad404e 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll
index 1aed027..1b7d9ee 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb
index 809713b..d446c58 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween43.dll.mdb differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll
index ea0b871..0298745 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb
index 0689185..5dbd96f 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.dll.mdb differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.xml b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.xml
index 3771132..8ba34f3 100644
--- a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.xml
+++ b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween46.xml
@@ -4,6 +4,17 @@
DOTween46
+
+
+ Various utils that require Unity 4.6 or later
+
+
+
+
+ Converts the anchoredPosition of the first RectTransform to the second RectTransform,
+ taking into consideration offset, anchors and pivot, and returns the new anchoredPosition
+
+
Methods that extend known Unity objects and allow to directly create and control tweens from their instances.
@@ -181,16 +192,5 @@
Also stores the Text as the tween's target so it can be used for filtered operations
The value to tween toThe duration of the tween
-
-
- Various utils that require Unity 4.6 or later
-
-
-
-
- Converts the anchoredPosition of the first RectTransform to the second RectTransform,
- taking into consideration offset, anchors and pivot, and returns the new anchoredPosition
-
-
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll
index afd0c94..13a2fc3 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb
index 4438b97..b517c01 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween50.dll.mdb differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML
index db17f44..6afe743 100644
--- a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML
+++ b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML
@@ -4,17 +4,6 @@
DOTweenEditor
-
-
- Not used as menu item anymore, but as a utiity function
-
-
-
-
- Setups DOTween
-
- If TRUE, no warning window appears in case there is no need for setup
-
Checks that the given editor texture use the correct import settings,
@@ -61,5 +50,16 @@
Full path for the given loaded assembly, assembly file included
+
+
+ Not used as menu item anymore, but as a utiity function
+
+
+
+
+ Setups DOTween
+
+ If TRUE, no warning window appears in case there is no need for setup
+
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll
index 7820f3b..d2ec7e2 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll and b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb
index fb8c228..544096d 100644
Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb differ
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.pdb.meta b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.pdb.meta
deleted file mode 100644
index ea36eae..0000000
--- a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/DOTweenEditor.pdb.meta
+++ /dev/null
@@ -1,4 +0,0 @@
-fileFormatVersion: 2
-guid: a09669494da114f4fb79d0b583615396
-DefaultImporter:
- userData:
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/vs67D.tmp b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/vs67D.tmp
new file mode 100644
index 0000000..6afe743
--- /dev/null
+++ b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/vs67D.tmp
@@ -0,0 +1,65 @@
+
+
+
+ DOTweenEditor
+
+
+
+
+ Checks that the given editor texture use the correct import settings,
+ and applies them if they're incorrect.
+
+
+
+
+ Returns TRUE if addons setup is required.
+
+
+
+
+ Returns TRUE if the file/directory at the given path exists.
+
+ Path, relative to Unity's project folder
+
+
+
+
+ Converts the given project-relative path to a full path,
+ with backward (\) slashes).
+
+
+
+
+ Converts the given full path to a path usable with AssetDatabase methods
+ (relative to Unity's project folder, and with the correct Unity forward (/) slashes).
+
+
+
+
+ Connects to a asset.
+ If the asset already exists at the given path, loads it and returns it.
+ Otherwise, either returns NULL or automatically creates it before loading and returning it
+ (depending on the given parameters).
+
+ Asset type
+ File path (relative to Unity's project folder)
+ If TRUE and the requested asset doesn't exist, forces its creation
+
+
+
+ Full path for the given loaded assembly, assembly file included
+
+
+
+
+ Not used as menu item anymore, but as a utiity function
+
+
+
+
+ Setups DOTween
+
+ If TRUE, no warning window appears in case there is no need for setup
+
+
+
diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/vsBAE5.tmp b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/vsBAE5.tmp
new file mode 100644
index 0000000..db17f44
--- /dev/null
+++ b/UnityTests.Unity4/Assets/Demigiant/DOTween/Editor/vsBAE5.tmp
@@ -0,0 +1,65 @@
+
+
+
+ DOTweenEditor
+
+
+
+
+ Not used as menu item anymore, but as a utiity function
+
+
+
+
+ Setups DOTween
+
+ If TRUE, no warning window appears in case there is no need for setup
+
+
+
+ Checks that the given editor texture use the correct import settings,
+ and applies them if they're incorrect.
+
+
+
+
+ Returns TRUE if addons setup is required.
+
+
+
+
+ Returns TRUE if the file/directory at the given path exists.
+
+ Path, relative to Unity's project folder
+
+
+
+
+ Converts the given project-relative path to a full path,
+ with backward (\) slashes).
+
+
+
+
+ Converts the given full path to a path usable with AssetDatabase methods
+ (relative to Unity's project folder, and with the correct Unity forward (/) slashes).
+
+
+
+
+ Connects to a asset.
+ If the asset already exists at the given path, loads it and returns it.
+ Otherwise, either returns NULL or automatically creates it before loading and returning it
+ (depending on the given parameters).
+
+ Asset type
+ File path (relative to Unity's project folder)
+ If TRUE and the requested asset doesn't exist, forces its creation
+
+
+
+ Full path for the given loaded assembly, assembly file included
+
+
+
+
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML
index d5a9cfc..ed3c17f 100644
--- a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML
+++ b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML
@@ -4,158 +4,45 @@
DOTween
-
+
- Update type
+ Types of autoPlay behaviours
-
- Updates every frame during Update calls
+
+ No tween is automatically played
-
- Updates every frame during LateUpdate calls
+
+ Only Sequences are automatically played
-
- Updates using FixedUpdate calls
+
+ Only Tweeners are automatically played
-
+
+ All tweens are automatically played
+
+
- Path mode (used to determine correct LookAt orientation)
+ What axis to constrain in case of Vector tweens
-
- Ignores the path mode (and thus LookAt behaviour)
+
+ Called the first time the tween is set in a playing state, after any eventual delay
-
- Regular 3D path
-
-
- 2D top-down path
-
-
- 2D side-scroller path
-
-
+
- Used internally
+ Used in place of System.Func, which is not available in mscorlib.
-
+
- This class serves only as a utility class to store tween settings to apply on multiple tweens.
- It is in no way needed otherwise, since you can directly apply tween settings to a tween via chaining
+ Used in place of System.Action.
-
- A variable you can eventually Clear and reuse when needed,
- to avoid instantiating TweenParams objects
-
-
- Creates a new TweenParams object, which you can use to store tween settings
- to pass to multiple tweens via myTween.SetAs(myTweenParms)
-
-
- Clears and resets this TweenParams instance using default values,
- so it can be reused without instantiating another one
-
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
- If TRUE the tween will be automatically killed when complete
-
-
- Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
- The ID to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
- IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
- When using shorcuts the shortcut target is already assigned as the tween's target,
- so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
- The target to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
- Loop behaviour type (default: LoopType.Restart)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual overshoot or amplitude to use with Back or Elastic easeType (default is 1.70158)
- Eventual period to use with Elastic easeType (default is 0)
-
-
- Sets the ease of the tween using an AnimationCurve.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween using a custom ease function.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the recycling behaviour for the tween.
- If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
-
-
- Sets the update type to the one defined in DOTween.defaultUpdateType (UpdateType.Normal unless changed)
- and lets you choose if it should be independent from Unity's Time.timeScale
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the type of update (default or independent) for the tween
- The type of update (default: UpdateType.Normal)
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the onStart callback for the tween.
- Called the first time the tween is set in a playing state, after any eventual delay
-
-
- Sets the onPlay callback for the tween.
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Sets the onRewind callback for the tween.
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Sets the onUpdate callback for the tween.
- Called each time the tween updates
-
-
- Sets the onStepComplete callback for the tween.
- Called the moment the tween completes one loop cycle, even when going backwards
-
-
- Sets the onComplete callback for the tween.
- Called the moment the tween reaches its final forward position, loops included
-
-
- Sets the onKill callback for the tween.
- Called the moment the tween is killed
-
-
- Sets the onWaypointChange callback for the tween.
- Called when a path tween reaches a new waypoint
-
-
- Sets a delayed startup for the tween.
- Has no effect on Sequences or if the tween has already started
-
-
- If isRelative is TRUE sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ Public so it can be used by lose scripts related to DOTween (like DOTweenAnimation)
+
@@ -163,6 +50,720 @@
Contains all instance-based methods
+
+ Used internally inside Unity Editor, as a trick to update DOTween's inspector at every frame
+
+
+
+ Directly sets the current max capacity of Tweeners and Sequences
+ (meaning how many Tweeners and Sequences can be running at the same time),
+ so that DOTween doesn't need to automatically increase them in case the max is reached
+ (which might lead to hiccups when that happens).
+ Sequences capacity must be less or equal to Tweeners capacity
+ (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
+ Beware: use this method only when there are no tweens running.
+
+ Max Tweeners capacity.
+ Default: 200
+ Max Sequences capacity.
+ Default: 50
+
+
+
+ This class contains a C# port of the easing equations created by Robert Penner (http://robertpenner.com/easing).
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
+
+
+
+
+ Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
+
+
+
+
+ Used to interpret AnimationCurves as eases.
+ Public so it can be used by external ease factories
+
+
+
+
+ Additional notices passed to plugins when updating.
+ Public so it can be used by custom plugins. Internally, only PathPlugin uses it
+
+
+
+
+ None
+
+
+
+
+ Lets the plugin know that we restarted or rewinded
+
+
+
+
+ Public only so custom shortcuts can access some of these methods
+
+
+
+
+ Returns a Vector3 with z = 0
+
+
+
+
+ Returns the 2D angle between two vectors
+
+
+
+
+ Struct that stores two colors (used for LineRenderer tweens)
+
+
+
+
+ Used for tween callbacks
+
+
+
+
+ Used for tween callbacks
+
+
+
+
+ Used for custom and animationCurve-based ease functions. Must return a value between 0 and 1.
+
+
+
+
+ Main DOTween class. Contains static methods to create and control tweens in a generic way
+
+
+
+ DOTween's version
+
+
+ If TRUE (default) makes tweens slightly slower but safer, automatically taking care of a series of things
+ (like targets becoming null while a tween is playing).
+ Default: TRUE
+
+
+ If TRUE you will get a DOTween report when exiting play mode (only in the Editor).
+ Useful to know how many max Tweeners and Sequences you reached and optimize your final project accordingly.
+ Beware, this will slightly slow down your tweens while inside Unity Editor.
+ Default: FALSE
+
+
+ Global DOTween timeScale.
+ Default: 1
+
+
+ If TRUE, DOTween will use Time.smoothDeltaTime instead of Time.deltaTime for UpdateType.Normal and UpdateType.Late tweens
+ (unless they're set as timeScaleIndependent, in which case this setting will be ignored).
+ Setting this to TRUE will lead to smoother animations.
+ Default: FALSE
+
+
+ DOTween's log behaviour.
+ Default: LogBehaviour.ErrorsOnly
+
+
+ If TRUE draws path gizmos in Unity Editor (if the gizmos button is active).
+ Deactivate this if you want to avoid gizmos overhead while in Unity Editor
+
+
+ Default updateType for new tweens.
+ Default: UpdateType.Normal
+
+
+ Sets whether Unity's timeScale should be taken into account by default or not.
+ Default: false
+
+
+ Default autoPlay behaviour for new tweens.
+ Default: AutoPlay.All
+
+
+ Default autoKillOnComplete behaviour for new tweens.
+ Default: TRUE
+
+
+ Default loopType applied to all new tweens.
+ Default: LoopType.Restart
+
+
+ If TRUE all newly created tweens are set as recyclable, otherwise not.
+ Default: FALSE
+
+
+ Default ease applied to all new Tweeners (not to Sequences which always have Ease.Linear as default).
+ Default: Ease.InOutQuad
+
+
+ Default overshoot/amplitude used for eases
+ Default: 1.70158f
+
+
+ Default period used for eases
+ Default: 0
+
+
+
+ Must be called once, before the first ever DOTween call/reference,
+ otherwise it will be called automatically and will use default options.
+ Calling it a second time won't have any effect.
+ You can chain SetCapacity to this method, to directly set the max starting size of Tweeners and Sequences:
+ DOTween.Init(false, false, LogBehaviour.Default).SetCapacity(100, 20);
+
+ If TRUE all new tweens will be set for recycling, meaning that when killed,
+ instead of being destroyed, they will be put in a pool and reused instead of creating new tweens. This option allows you to avoid
+ GC allocations by reusing tweens, but you will have to take care of tween references, since they might result active
+ even if they were killed (since they might have been respawned and are now being used for other tweens).
+ If you want to automatically set your tween references to NULL when a tween is killed
+ you can use the OnKill callback like this:
+ .OnKill(()=> myTweenReference = null)
+ You can change this setting at any time by changing the static property,
+ or you can set the recycling behaviour for each tween separately, using:
+ SetRecyclable(bool recyclable)
+ Default: FALSE
+ If TRUE makes tweens slightly slower but safer, automatically taking care of a series of things
+ (like targets becoming null while a tween is playing).
+ You can change this setting at any time by changing the static property.
+ Default: FALSE
+ Type of logging to use.
+ You can change this setting at any time by changing the static property.
+ Default: ErrorsOnly
+
+
+
+ Directly sets the current max capacity of Tweeners and Sequences
+ (meaning how many Tweeners and Sequences can be running at the same time),
+ so that DOTween doesn't need to automatically increase them in case the max is reached
+ (which might lead to hiccups when that happens).
+ Sequences capacity must be less or equal to Tweeners capacity
+ (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
+ Beware: use this method only when there are no tweens running.
+
+ Max Tweeners capacity.
+ Default: 200
+ Max Sequences capacity.
+ Default: 50
+
+
+
+ Kills all tweens, clears all cached tween pools and plugins and resets the max Tweeners/Sequences capacities to the default values.
+
+ If TRUE also destroys DOTween's gameObject and resets its initializiation, default settings and everything else
+ (so that next time you use it it will need to be re-initialized)
+
+
+
+ Clears all cached tween pools.
+
+
+
+
+ Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
+ and returns the total number of invalid tweens found and removed.
+ Automatically called when loading a new scene if is TRUE.
+ BEWARE: this is a slightly expensive operation so use it with care
+
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using a custom plugin
+ The plugin to use. Each custom plugin implements a static Get() method
+ you'll need to call to assign the correct plugin in the correct way, like this:
+ CustomPlugin.Get()
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens only one axis of a Vector3 to the given value using default plugins.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+ The axis to tween
+
+
+ Tweens only the alpha of a Color to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a virtual property from the given start to the given end value
+ and implements a setter that allows to use that value with an external method or a lambda
+ Example:
+ To(MyMethod, 0, 12, 0.5f);
+ Where MyMethod is a function that accepts a float parameter (which will be the result of the virtual tween)
+ The action to perform with the tweened value
+ The value to start from
+ The end value to reach
+ The duration of the virtual tween
+
+
+
+ Punches a Vector3 towards the given direction and then back to the starting one
+ as if it was connected to the starting position via an elastic.
+ This tween type generates some GC allocations at startup
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The direction and strength of the punch
+ The duration of the tween
+ Indicates how much will the punch vibrate
+ Represents how much (0 to 1) the vector will go beyond the starting position when bouncing backwards.
+ 1 creates a full oscillation between the direction and the opposite decaying direction,
+ while 0 oscillates only between the starting position and the decaying direction
+
+
+ Shakes a Vector3 with the given values.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The duration of the tween
+ The shake strength
+ Indicates how much will the shake vibrate
+ Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
+ Setting it to 0 will shake along a single direction and behave like a random punch.
+ If TRUE only shakes on the X Y axis (looks better with things like cameras).
+
+
+ Shakes a Vector3 with the given values.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The duration of the tween
+ The shake strength on each axis
+ Indicates how much will the shake vibrate
+ Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
+ Setting it to 0 will shake along a single direction and behave like a random punch.
+
+
+ Tweens a property or field to the given values using default plugins.
+ Ease is applied between each segment and not as a whole.
+ This tween type generates some GC allocations at startup
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end values to reach for each segment. This array must have the same length as durations
+ The duration of each segment. This array must have the same length as endValues
+
+
+
+ Returns a new to be used for tween groups
+
+
+
+ Completes all tweens and returns the number of actual tweens completed
+ (meaning tweens that don't have infinite loops and were not already complete)
+
+
+ Completes all tweens with the given ID or target and returns the number of actual tweens completed
+ (meaning the tweens that don't have infinite loops and were not already complete)
+
+
+ Flips all tweens (changing their direction to forward if it was backwards and viceversa),
+ then returns the number of actual tweens flipped
+
+
+ Flips the tweens with the given ID or target (changing their direction to forward if it was backwards and viceversa),
+ then returns the number of actual tweens flipped
+
+
+ Sends all tweens to the given position (calculating also eventual loop cycles) and returns the actual tweens involved
+
+
+ Sends all tweens with the given ID or target to the given position (calculating also eventual loop cycles)
+ and returns the actual tweens involved
+
+
+ Kills all tweens and returns the number of actual tweens killed
+ If TRUE completes the tweens before killing them
+
+
+ Kills all tweens with the given ID or target and returns the number of actual tweens killed
+ If TRUE completes the tweens before killing them
+
+
+ Pauses all tweens and returns the number of actual tweens paused
+
+
+ Pauses all tweens with the given ID or target and returns the number of actual tweens paused
+ (meaning the tweens that were actually playing and have been paused)
+
+
+ Plays all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already playing or complete)
+
+
+ Plays all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Plays all tweens with the given target and the given ID, and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Plays backwards all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already started, playing backwards or rewinded)
+
+
+ Plays backwards all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already started, playing backwards or rewinded)
+
+
+ Plays forward all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already playing forward or complete)
+
+
+ Plays forward all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already playing forward or complete)
+
+
+ Restarts all tweens, then returns the number of actual tweens restarted
+
+
+ Restarts all tweens with the given ID or target, then returns the number of actual tweens restarted
+
+
+ Restarts all tweens with the given target and the given ID, and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Rewinds and pauses all tweens, then returns the number of actual tweens rewinded
+ (meaning tweens that were not already rewinded)
+
+
+ Rewinds and pauses all tweens with the given ID or target, then returns the number of actual tweens rewinded
+ (meaning the tweens that were not already rewinded)
+
+
+ Smoothly rewinds all tweens (delays excluded), then returns the number of actual tweens rewinding/rewinded
+ (meaning tweens that were not already rewinded).
+ A "smooth rewind" animates the tween to its start position,
+ skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
+ Note that a tween that was smoothly rewinded will have its play direction flipped
+
+
+ Smoothly rewinds all tweens (delays excluded) with the given ID or target, then returns the number of actual tweens rewinding/rewinded
+ (meaning the tweens that were not already rewinded).
+ A "smooth rewind" animates the tween to its start position,
+ skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
+ Note that a tween that was smoothly rewinded will have its play direction flipped
+
+
+ Toggles the play state of all tweens and returns the number of actual tweens toggled
+ (meaning tweens that could be played or paused, depending on the toggle state)
+
+
+ Toggles the play state of all tweens with the given ID or target and returns the number of actual tweens toggled
+ (meaning the tweens that could be played or paused, depending on the toggle state)
+
+
+
+ Returns TRUE if a tween with the given ID or target is active (regardless if it's playing or not).
+ You can also use this to know if a shortcut tween is active for a given target.
+ Example:
+ transform.DOMoveX(45, 1); // transform is automatically added as the tween target
+ DOTween.IsTweening(transform); // Returns true
+
+
+
+
+ Returns the total number of active and playing tweens.
+ A tween is considered as playing even if its delay is actually playing
+
+
+
+
+ Returns a list of all active tweens in a playing state.
+ Returns NULL if there are no active playing tweens.
+ Beware: each time you call this method a new list is generated, so use it for debug only
+
+
+
+
+ Returns a list of all active tweens in a paused state.
+ Returns NULL if there are no active paused tweens.
+ Beware: each time you call this method a new list is generated, so use it for debug only
+
+
+
+
+ Returns a list of all active tweens with the given id.
+ Returns NULL if there are no active tweens with the given id.
+ Beware: each time you call this method a new list is generated
+ If TRUE returns only the tweens with the given ID that are currently playing
+
+
+
+
+ Returns a list of all active tweens with the given target.
+ Returns NULL if there are no active tweens with the given target.
+ Beware: each time you call this method a new list is generated
+ If TRUE returns only the tweens with the given target that are currently playing
+
+
+
+
+ Creates virtual tweens that can be used to change other elements via their OnUpdate calls
+
+
+
+
+ Tweens a virtual float.
+ You can add regular settings to the generated tween,
+ but do not use SetUpdate or you will overwrite the onVirtualUpdate parameter
+
+ The value to start from
+ The value to tween to
+ The duration of the tween
+ A callback which must accept a parameter of type float, called at each update
+
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+ Eventual overshoot to use with Back ease
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+ Eventual amplitude to use with Elastic easeType
+ Eventual period to use with Elastic easeType
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The AnimationCurve to use for ease
+
+
+ Fires the given callback after the given time.
+ Callback delay
+ Callback to fire when the delay has expired
+ If TRUE (default) ignores Unity's timeScale
+
+
+
+ Don't assign this! It's assigned automatically when creating 0 duration tweens
+
+
+
+
+ Don't assign this! It's assigned automatically when setting the ease to an AnimationCurve or to a custom ease function
+
+
+
+
+ Allows to wrap ease method in special ways, adding extra features
+
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ Ease type
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ AnimationCurve to use for the ease
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ Custom ease function to use
+
Used to allow method chaining with DOTween.Init
@@ -183,84 +784,55 @@
Max Sequences capacity.
Default: 50
-
- Used internally inside Unity Editor, as a trick to update DOTween's inspector at every frame
-
-
+
- Directly sets the current max capacity of Tweeners and Sequences
- (meaning how many Tweeners and Sequences can be running at the same time),
- so that DOTween doesn't need to automatically increase them in case the max is reached
- (which might lead to hiccups when that happens).
- Sequences capacity must be less or equal to Tweeners capacity
- (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
- Beware: use this method only when there are no tweens running.
-
- Max Tweeners capacity.
- Default: 200
- Max Sequences capacity.
- Default: 50
-
-
-
- Public so it can be used by lose scripts related to DOTween (like DOTweenAnimation)
+ Path mode (used to determine correct LookAt orientation)
-
+
+ Ignores the path mode (and thus LookAt behaviour)
+
+
+ Regular 3D path
+
+
+ 2D top-down path
+
+
+ 2D side-scroller path
+
+
- Controls other tweens as a group
+ Type of path to use with DOPath tweens
-
+
+ Linear, composed of straight segments between each waypoint
+
+
+ Curved path (which uses Catmull-Rom curves)
+
+
- Indicates either a Tweener or a Sequence
+ Path control point
-
- Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Gets the point on the path at the given percentage (0 to 1)
+
+ The percentage (0 to 1) at which to get the point
+ If TRUE constant speed is taken into account, otherwise not
-
- TimeScale for the tween
+
+
+ This plugin generates some GC allocations at startup
+
-
- If TRUE the tween wil go backwards
-
-
- Id (usable for filtering with DOTween static methods). Can be an int, a string, an object, or anything else
-
-
- Tween target (usable for filtering with DOTween static methods). Automatically set by tween creation shorcuts
-
-
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Called when the tween state changes from playing to paused.
- If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
-
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Called each time the tween updates
-
-
- Called the moment the tween completes one loop cycle
-
-
- Called the moment the tween reaches completion (loops included)
-
-
- Called the moment the tween is killed
-
-
- Called when a path tween's current waypoint changes
-
-
- Gets and sets the time position (loops included, delays excluded) of the tween
+
+
+ Path plugin works exclusively with Transforms
+
@@ -291,349 +863,40 @@
In this mode the end value is is always considered relative
-
+
- This plugin generates some GC allocations at startup
+ Type of scramble to apply to string tweens
-
+
- Don't assign this! It's assigned automatically when creating 0 duration tweens
+ No scrambling of characters
-
+
- Don't assign this! It's assigned automatically when setting the ease to an AnimationCurve or to a custom ease function
+ A-Z + a-z + 0-9 characters
-
+
- Types of log behaviours
+ A-Z characters
-
- Log only warnings and errors
-
-
- Log warnings, errors and additional infos
-
-
- Log only errors
-
-
+
- Methods that extend Tween objects and allow to set their parameters
+ a-z characters
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
+
+
+ 0-9 characters
+
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
- If TRUE the tween will be automatically killed when complete
-
-
- Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
- The ID to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
- IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
- When using shorcuts the shortcut target is already assigned as the tween's target,
- so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
- The target to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
- Loop behaviour type (default: LoopType.Restart)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual overshoot to use with Back ease (default is 1.70158)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual amplitude to use with Elastic easeType (default is 1.70158)
- Eventual period to use with Elastic easeType (default is 0)
-
-
- Sets the ease of the tween using an AnimationCurve.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween using a custom ease function (which must return a value between 0 and 1).
- If applied to Sequences eases the whole sequence animation
-
-
- Allows the tween to be recycled after being killed.
-
-
- Sets the recycling behaviour for the tween.
- If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
-
-
- Sets the update type to UpdateType.Normal and lets you choose if it should be independent from Unity's Time.timeScale
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the type of update for the tween
- The type of update (defalt: UpdateType.Normal)
-
-
- Sets the type of update for the tween and lets you choose if it should be independent from Unity's Time.timeScale
- The type of update
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the onStart callback for the tween.
- Called the first time the tween is set in a playing state, after any eventual delay
-
-
- Sets the onPlay callback for the tween.
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Sets the onPlay callback for the tween.
- Called when the tween state changes from playing to paused.
- If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
-
- Sets the onRewind callback for the tween.
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Sets the onUpdate callback for the tween.
- Called each time the tween updates
-
-
- Sets the onStepComplete callback for the tween.
- Called the moment the tween completes one loop cycle, even when going backwards
-
-
- Sets the onComplete callback for the tween.
- Called the moment the tween reaches its final forward position, loops included
-
-
- Sets the onKill callback for the tween.
- Called the moment the tween is killed
-
-
- Sets the onWaypointChange callback for the tween.
- Called when a path tween's current waypoint changes
-
-
- Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given one.
- Doesn't copy specific SetOptions settings: those will need to be applied manually each time.
- Has no effect if the tween has already started.
- NOTE: the tween's target will not be changed
- Tween from which to copy the parameters
-
-
- Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given TweenParams.
- Has no effect if the tween has already started.
- TweenParams from which to copy the parameters
-
-
- Adds the given tween to the end of the Sequence.
- Has no effect if the Sequence has already started
- The tween to append
-
-
- Adds the given tween to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The tween to prepend
-
-
- Inserts the given tween at the same time position of the last tween added to the Sequence.
- Has no effect if the Sequence has already started
-
-
- Inserts the given tween at the given time position in the Sequence,
- automatically adding an interval if needed.
- Has no effect if the Sequence has already started
- The time position where the tween will be placed
- The tween to insert
-
-
- Adds the given interval to the end of the Sequence.
- Has no effect if the Sequence has already started
- The interval duration
-
-
- Adds the given interval to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The interval duration
-
-
- Adds the given callback to the end of the Sequence.
- Has no effect if the Sequence has already started
- The callback to append
-
-
- Adds the given callback to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The callback to prepend
-
-
- Inserts the given callback at the given time position in the Sequence,
- automatically adding an interval if needed.
- Has no effect if the Sequence has already started
- The time position where the callback will be placed
- The callback to insert
-
-
- Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
- then immediately sends the target to the previously set endValue.
-
-
- Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
- then immediately sends the target to the previously set endValue.
- If TRUE the FROM value will be calculated as relative to the current one
-
-
- Sets a delayed startup for the tween.
- Has no effect on Sequences or if the tween has already started
-
-
- Sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isRelative is TRUE sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
-
-
- Options for float tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector2 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector2 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Quaternion tweens
- If TRUE (default) the rotation will take the shortest route, and will not rotate more than 360°.
- If FALSE the rotation will be fully accounted. Is always FALSE if the tween is set as relative
-
-
- Options for Color tweens
- If TRUE only the alpha value of the color will be tweened
-
-
- Options for Vector4 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- If TRUE, rich text will be interpreted correctly while animated,
- otherwise all tags will be considered as normal text
- The type of scramble to use, if any
- A string containing the characters to use for scrambling.
- Use as many characters as possible (minimum 10) because DOTween uses a fast scramble mode which gives better results with more characters.
- Leave it to NULL to use default ones
-
-
- Options for Vector3Array tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3Array tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Path tweens (created via the DOPath shortcut)
- The eventual movement axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
- The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
-
-
- Options for Path tweens (created via the DOPath shortcut)
- If TRUE the path will be automatically closed
- The eventual movement axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
- The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target towards the given position.
- Must be chained directly to the tween creation method or to a SetOptions
- The position to look at
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target towards another transform.
- Must be chained directly to the tween creation method or to a SetOptions
- The transform to look at
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target to the path, with the given lookAhead.
- Must be chained directly to the tween creation method or to a SetOptions
- The percentage of lookAhead to use (0 to 1)
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Custom characters
+
@@ -822,48 +1085,26 @@
You can force a path to be initialized by calling myTween.ForceInit().
-
+
- Used for tween callbacks
+ Types of loop
-
+
+ Each loop cycle restarts from the beginning
+
+
+ The tween moves forward and backwards at alternate cycles
+
+
+ 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".
+ In case of String tweens works only if the tween is set as relative
+
+
- Used for tween callbacks
+ Controls other tweens as a group
-
-
- Used for custom and animationCurve-based ease functions. Must return a value between 0 and 1.
-
-
-
-
- Used in place of System.Func, which is not available in mscorlib.
-
-
-
-
- Used in place of System.Action.
-
-
-
-
- Types of autoPlay behaviours
-
-
-
- No tween is automatically played
-
-
- Only Sequences are automatically played
-
-
- Only Tweeners are automatically played
-
-
- All tweens are automatically played
-
Methods that extend known Unity objects and allow to directly create and control tweens from their instances
@@ -1468,564 +1709,499 @@
and returns the total number of tweens involved.
-
+
- Additional notices passed to plugins when updating.
- Public so it can be used by custom plugins. Internally, only PathPlugin uses it
+ This class serves only as a utility class to store tween settings to apply on multiple tweens.
+ It is in no way needed otherwise, since you can directly apply tween settings to a tween via chaining
-
+
+ A variable you can eventually Clear and reuse when needed,
+ to avoid instantiating TweenParams objects
+
+
+ Creates a new TweenParams object, which you can use to store tween settings
+ to pass to multiple tweens via myTween.SetAs(myTweenParms)
+
+
+ Clears and resets this TweenParams instance using default values,
+ so it can be reused without instantiating another one
+
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+ If TRUE the tween will be automatically killed when complete
+
+
+ Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
+ The ID to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
+ IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
+ When using shorcuts the shortcut target is already assigned as the tween's target,
+ so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
+ The target to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+ Loop behaviour type (default: LoopType.Restart)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual overshoot or amplitude to use with Back or Elastic easeType (default is 1.70158)
+ Eventual period to use with Elastic easeType (default is 0)
+
+
+ Sets the ease of the tween using an AnimationCurve.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween using a custom ease function.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the recycling behaviour for the tween.
+ If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
+
+
+ Sets the update type to the one defined in DOTween.defaultUpdateType (UpdateType.Normal unless changed)
+ and lets you choose if it should be independent from Unity's Time.timeScale
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the type of update (default or independent) for the tween
+ The type of update (default: UpdateType.Normal)
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the onStart callback for the tween.
+ Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
+
+
+ Sets the onRewind callback for the tween.
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
+
+
+ Sets the onUpdate callback for the tween.
+ Called each time the tween updates
+
+
+ Sets the onStepComplete callback for the tween.
+ Called the moment the tween completes one loop cycle, even when going backwards
+
+
+ Sets the onComplete callback for the tween.
+ Called the moment the tween reaches its final forward position, loops included
+
+
+ Sets the onKill callback for the tween.
+ Called the moment the tween is killed
+
+
+ Sets the onWaypointChange callback for the tween.
+ Called when a path tween reaches a new waypoint
+
+
+ Sets a delayed startup for the tween.
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isRelative is TRUE sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
- None
+ Methods that extend Tween objects and allow to set their parameters
-
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+ If TRUE the tween will be automatically killed when complete
+
+
+ Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
+ The ID to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
+ IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
+ When using shorcuts the shortcut target is already assigned as the tween's target,
+ so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
+ The target to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+ Loop behaviour type (default: LoopType.Restart)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual overshoot to use with Back ease (default is 1.70158)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual amplitude to use with Elastic easeType (default is 1.70158)
+ Eventual period to use with Elastic easeType (default is 0)
+
+
+ Sets the ease of the tween using an AnimationCurve.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween using a custom ease function (which must return a value between 0 and 1).
+ If applied to Sequences eases the whole sequence animation
+
+
+ Allows the tween to be recycled after being killed.
+
+
+ Sets the recycling behaviour for the tween.
+ If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
+
+
+ Sets the update type to UpdateType.Normal and lets you choose if it should be independent from Unity's Time.timeScale
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the type of update for the tween
+ The type of update (defalt: UpdateType.Normal)
+
+
+ Sets the type of update for the tween and lets you choose if it should be independent from Unity's Time.timeScale
+ The type of update
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the onStart callback for the tween.
+ Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween state changes from playing to paused.
+ If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
+
+
+ Sets the onRewind callback for the tween.
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
+
+
+ Sets the onUpdate callback for the tween.
+ Called each time the tween updates
+
+
+ Sets the onStepComplete callback for the tween.
+ Called the moment the tween completes one loop cycle, even when going backwards
+
+
+ Sets the onComplete callback for the tween.
+ Called the moment the tween reaches its final forward position, loops included
+
+
+ Sets the onKill callback for the tween.
+ Called the moment the tween is killed
+
+
+ Sets the onWaypointChange callback for the tween.
+ Called when a path tween's current waypoint changes
+
+
+ Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given one.
+ Doesn't copy specific SetOptions settings: those will need to be applied manually each time.
+ Has no effect if the tween has already started.
+ NOTE: the tween's target will not be changed
+ Tween from which to copy the parameters
+
+
+ Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given TweenParams.
+ Has no effect if the tween has already started.
+ TweenParams from which to copy the parameters
+
+
+ Adds the given tween to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The tween to append
+
+
+ Adds the given tween to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The tween to prepend
+
+
+ Inserts the given tween at the same time position of the last tween added to the Sequence.
+ Has no effect if the Sequence has already started
+
+
+ Inserts the given tween at the given time position in the Sequence,
+ automatically adding an interval if needed.
+ Has no effect if the Sequence has already started
+ The time position where the tween will be placed
+ The tween to insert
+
+
+ Adds the given interval to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The interval duration
+
+
+ Adds the given interval to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The interval duration
+
+
+ Adds the given callback to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The callback to append
+
+
+ Adds the given callback to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The callback to prepend
+
+
+ Inserts the given callback at the given time position in the Sequence,
+ automatically adding an interval if needed.
+ Has no effect if the Sequence has already started
+ The time position where the callback will be placed
+ The callback to insert
+
+
+ Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
+ then immediately sends the target to the previously set endValue.
+
+
+ Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
+ then immediately sends the target to the previously set endValue.
+ If TRUE the FROM value will be calculated as relative to the current one
+
+
+ Sets a delayed startup for the tween.
+ Has no effect on Sequences or if the tween has already started
+
+
+ Sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isRelative is TRUE sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ Options for float tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector2 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector2 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Quaternion tweens
+ If TRUE (default) the rotation will take the shortest route, and will not rotate more than 360°.
+ If FALSE the rotation will be fully accounted. Is always FALSE if the tween is set as relative
+
+
+ Options for Color tweens
+ If TRUE only the alpha value of the color will be tweened
+
+
+ Options for Vector4 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ If TRUE, rich text will be interpreted correctly while animated,
+ otherwise all tags will be considered as normal text
+ The type of scramble to use, if any
+ A string containing the characters to use for scrambling.
+ Use as many characters as possible (minimum 10) because DOTween uses a fast scramble mode which gives better results with more characters.
+ Leave it to NULL to use default ones
+
+
+ Options for Vector3Array tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3Array tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Path tweens (created via the DOPath shortcut)
+ The eventual movement axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+ The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+
+
+ Options for Path tweens (created via the DOPath shortcut)
+ If TRUE the path will be automatically closed
+ The eventual movement axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+ The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target towards the given position.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The position to look at
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target towards another transform.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The transform to look at
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target to the path, with the given lookAhead.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The percentage of lookAhead to use (0 to 1)
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
- Lets the plugin know that we restarted or rewinded
+ Types of log behaviours
-
+
+ Log only warnings and errors
+
+
+ Log warnings, errors and additional infos
+
+
+ Log only errors
+
+
- Type of path to use with DOPath tweens
+ Indicates either a Tweener or a Sequence
-
- Linear, composed of straight segments between each waypoint
+
+ TimeScale for the tween
-
- Curved path (which uses Catmull-Rom curves)
+
+ If TRUE the tween wil go backwards
-
-
- Main DOTween class. Contains static methods to create and control tweens in a generic way
-
+
+ Id (usable for filtering with DOTween static methods). Can be an int, a string, an object, or anything else
-
- DOTween's version
+
+ Tween target (usable for filtering with DOTween static methods). Automatically set by tween creation shorcuts
-
- If TRUE (default) makes tweens slightly slower but safer, automatically taking care of a series of things
- (like targets becoming null while a tween is playing).
- Default: TRUE
+
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
-
- If TRUE you will get a DOTween report when exiting play mode (only in the Editor).
- Useful to know how many max Tweeners and Sequences you reached and optimize your final project accordingly.
- Beware, this will slightly slow down your tweens while inside Unity Editor.
- Default: FALSE
+
+ Called when the tween state changes from playing to paused.
+ If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
- Global DOTween timeScale.
- Default: 1
+
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
-
- If TRUE, DOTween will use Time.smoothDeltaTime instead of Time.deltaTime for UpdateType.Normal and UpdateType.Late tweens
- (unless they're set as timeScaleIndependent, in which case this setting will be ignored).
- Setting this to TRUE will lead to smoother animations.
- Default: FALSE
+
+ Called each time the tween updates
-
- If TRUE draws path gizmos in Unity Editor (if the gizmos button is active).
- Deactivate this if you want to avoid gizmos overhead while in Unity Editor
+
+ Called the moment the tween completes one loop cycle
-
- Default updateType for new tweens.
- Default: UpdateType.Normal
+
+ Called the moment the tween reaches completion (loops included)
-
- Sets whether Unity's timeScale should be taken into account by default or not.
- Default: false
+
+ Called the moment the tween is killed
-
- Default autoPlay behaviour for new tweens.
- Default: AutoPlay.All
+
+ Called when a path tween's current waypoint changes
-
- Default autoKillOnComplete behaviour for new tweens.
- Default: TRUE
-
-
- Default loopType applied to all new tweens.
- Default: LoopType.Restart
-
-
- If TRUE all newly created tweens are set as recyclable, otherwise not.
- Default: FALSE
-
-
- Default ease applied to all new Tweeners (not to Sequences which always have Ease.Linear as default).
- Default: Ease.InOutQuad
-
-
- Default overshoot/amplitude used for eases
- Default: 1.70158f
-
-
- Default period used for eases
- Default: 0
-
-
-
- Must be called once, before the first ever DOTween call/reference,
- otherwise it will be called automatically and will use default options.
- Calling it a second time won't have any effect.
- You can chain SetCapacity to this method, to directly set the max starting size of Tweeners and Sequences:
- DOTween.Init(false, false, LogBehaviour.Default).SetCapacity(100, 20);
-
- If TRUE all new tweens will be set for recycling, meaning that when killed,
- instead of being destroyed, they will be put in a pool and reused instead of creating new tweens. This option allows you to avoid
- GC allocations by reusing tweens, but you will have to take care of tween references, since they might result active
- even if they were killed (since they might have been respawned and are now being used for other tweens).
- If you want to automatically set your tween references to NULL when a tween is killed
- you can use the OnKill callback like this:
- .OnKill(()=> myTweenReference = null)
- You can change this setting at any time by changing the static property,
- or you can set the recycling behaviour for each tween separately, using:
- SetRecyclable(bool recyclable)
- Default: FALSE
- If TRUE makes tweens slightly slower but safer, automatically taking care of a series of things
- (like targets becoming null while a tween is playing).
- You can change this setting at any time by changing the static property.
- Default: FALSE
- Type of logging to use.
- You can change this setting at any time by changing the static property.
- Default: ErrorsOnly
-
-
-
- Directly sets the current max capacity of Tweeners and Sequences
- (meaning how many Tweeners and Sequences can be running at the same time),
- so that DOTween doesn't need to automatically increase them in case the max is reached
- (which might lead to hiccups when that happens).
- Sequences capacity must be less or equal to Tweeners capacity
- (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
- Beware: use this method only when there are no tweens running.
-
- Max Tweeners capacity.
- Default: 200
- Max Sequences capacity.
- Default: 50
-
-
-
- Kills all tweens, clears all cached tween pools and plugins and resets the max Tweeners/Sequences capacities to the default values.
-
- If TRUE also destroys DOTween's gameObject and resets its initializiation, default settings and everything else
- (so that next time you use it it will need to be re-initialized)
-
-
-
- Clears all cached tween pools.
-
-
-
-
- Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
- and returns the total number of invalid tweens found and removed.
- Automatically called when loading a new scene if is TRUE.
- BEWARE: this is a slightly expensive operation so use it with care
-
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using a custom plugin
- The plugin to use. Each custom plugin implements a static Get() method
- you'll need to call to assign the correct plugin in the correct way, like this:
- CustomPlugin.Get()
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens only one axis of a Vector3 to the given value using default plugins.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
- The axis to tween
-
-
- Tweens only the alpha of a Color to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a virtual property from the given start to the given end value
- and implements a setter that allows to use that value with an external method or a lambda
- Example:
- To(MyMethod, 0, 12, 0.5f);
- Where MyMethod is a function that accepts a float parameter (which will be the result of the virtual tween)
- The action to perform with the tweened value
- The value to start from
- The end value to reach
- The duration of the virtual tween
-
-
-
- Punches a Vector3 towards the given direction and then back to the starting one
- as if it was connected to the starting position via an elastic.
- This tween type generates some GC allocations at startup
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The direction and strength of the punch
- The duration of the tween
- Indicates how much will the punch vibrate
- Represents how much (0 to 1) the vector will go beyond the starting position when bouncing backwards.
- 1 creates a full oscillation between the direction and the opposite decaying direction,
- while 0 oscillates only between the starting position and the decaying direction
-
-
- Shakes a Vector3 with the given values.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The duration of the tween
- The shake strength
- Indicates how much will the shake vibrate
- Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
- Setting it to 0 will shake along a single direction and behave like a random punch.
- If TRUE only shakes on the X Y axis (looks better with things like cameras).
-
-
- Shakes a Vector3 with the given values.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The duration of the tween
- The shake strength on each axis
- Indicates how much will the shake vibrate
- Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
- Setting it to 0 will shake along a single direction and behave like a random punch.
-
-
- Tweens a property or field to the given values using default plugins.
- Ease is applied between each segment and not as a whole.
- This tween type generates some GC allocations at startup
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end values to reach for each segment. This array must have the same length as durations
- The duration of each segment. This array must have the same length as endValues
-
-
-
- Returns a new to be used for tween groups
-
-
-
- Completes all tweens and returns the number of actual tweens completed
- (meaning tweens that don't have infinite loops and were not already complete)
-
-
- Completes all tweens with the given ID or target and returns the number of actual tweens completed
- (meaning the tweens that don't have infinite loops and were not already complete)
-
-
- Flips all tweens (changing their direction to forward if it was backwards and viceversa),
- then returns the number of actual tweens flipped
-
-
- Flips the tweens with the given ID or target (changing their direction to forward if it was backwards and viceversa),
- then returns the number of actual tweens flipped
-
-
- Sends all tweens to the given position (calculating also eventual loop cycles) and returns the actual tweens involved
-
-
- Sends all tweens with the given ID or target to the given position (calculating also eventual loop cycles)
- and returns the actual tweens involved
-
-
- Kills all tweens and returns the number of actual tweens killed
- If TRUE completes the tweens before killing them
-
-
- Kills all tweens with the given ID or target and returns the number of actual tweens killed
- If TRUE completes the tweens before killing them
-
-
- Pauses all tweens and returns the number of actual tweens paused
-
-
- Pauses all tweens with the given ID or target and returns the number of actual tweens paused
- (meaning the tweens that were actually playing and have been paused)
-
-
- Plays all tweens and returns the number of actual tweens played
- (meaning tweens that were not already playing or complete)
-
-
- Plays all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Plays all tweens with the given target and the given ID, and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Plays backwards all tweens and returns the number of actual tweens played
- (meaning tweens that were not already started, playing backwards or rewinded)
-
-
- Plays backwards all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already started, playing backwards or rewinded)
-
-
- Plays forward all tweens and returns the number of actual tweens played
- (meaning tweens that were not already playing forward or complete)
-
-
- Plays forward all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already playing forward or complete)
-
-
- Restarts all tweens, then returns the number of actual tweens restarted
-
-
- Restarts all tweens with the given ID or target, then returns the number of actual tweens restarted
-
-
- Restarts all tweens with the given target and the given ID, and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Rewinds and pauses all tweens, then returns the number of actual tweens rewinded
- (meaning tweens that were not already rewinded)
-
-
- Rewinds and pauses all tweens with the given ID or target, then returns the number of actual tweens rewinded
- (meaning the tweens that were not already rewinded)
-
-
- Smoothly rewinds all tweens (delays excluded), then returns the number of actual tweens rewinding/rewinded
- (meaning tweens that were not already rewinded).
- A "smooth rewind" animates the tween to its start position,
- skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
- Note that a tween that was smoothly rewinded will have its play direction flipped
-
-
- Smoothly rewinds all tweens (delays excluded) with the given ID or target, then returns the number of actual tweens rewinding/rewinded
- (meaning the tweens that were not already rewinded).
- A "smooth rewind" animates the tween to its start position,
- skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
- Note that a tween that was smoothly rewinded will have its play direction flipped
-
-
- Toggles the play state of all tweens and returns the number of actual tweens toggled
- (meaning tweens that could be played or paused, depending on the toggle state)
-
-
- Toggles the play state of all tweens with the given ID or target and returns the number of actual tweens toggled
- (meaning the tweens that could be played or paused, depending on the toggle state)
-
-
-
- Returns TRUE if a tween with the given ID or target is active (regardless if it's playing or not).
- You can also use this to know if a shortcut tween is active for a given target.
- Example:
- transform.DOMoveX(45, 1); // transform is automatically added as the tween target
- DOTween.IsTweening(transform); // Returns true
-
-
-
-
- Returns the total number of active and playing tweens.
- A tween is considered as playing even if its delay is actually playing
-
-
-
-
- Returns a list of all active tweens in a playing state.
- Returns NULL if there are no active playing tweens.
- Beware: each time you call this method a new list is generated, so use it for debug only
-
-
-
-
- Returns a list of all active tweens in a paused state.
- Returns NULL if there are no active paused tweens.
- Beware: each time you call this method a new list is generated, so use it for debug only
-
-
-
-
- Returns a list of all active tweens with the given id.
- Returns NULL if there are no active tweens with the given id.
- Beware: each time you call this method a new list is generated
- If TRUE returns only the tweens with the given ID that are currently playing
-
-
-
-
- Returns a list of all active tweens with the given target.
- Returns NULL if there are no active tweens with the given target.
- Beware: each time you call this method a new list is generated
- If TRUE returns only the tweens with the given target that are currently playing
-
-
-
- DOTween's log behaviour.
- Default: LogBehaviour.ErrorsOnly
-
-
-
- Path plugin works exclusively with Transforms
-
-
-
-
- Allows to wrap ease method in special ways, adding extra features
-
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- Ease type
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- AnimationCurve to use for the ease
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- Custom ease function to use
-
-
-
- Types of loop
-
-
-
- Each loop cycle restarts from the beginning
-
-
- The tween moves forward and backwards at alternate cycles
-
-
- 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".
- In case of String tweens works only if the tween is set as relative
+
+ Gets and sets the time position (loops included, delays excluded) of the tween
@@ -2058,200 +2234,24 @@
The new end value
If bigger than 0 applies it as the new tween duration
-
+
- Creates virtual tweens that can be used to change other elements via their OnUpdate calls
+ Used internally
-
+
- Tweens a virtual float.
- You can add regular settings to the generated tween,
- but do not use SetUpdate or you will overwrite the onVirtualUpdate parameter
-
- The value to start from
- The value to tween to
- The duration of the tween
- A callback which must accept a parameter of type float, called at each update
-
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
- Eventual overshoot to use with Back ease
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
- Eventual amplitude to use with Elastic easeType
- Eventual period to use with Elastic easeType
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The AnimationCurve to use for ease
-
-
- Fires the given callback after the given time.
- Callback delay
- Callback to fire when the delay has expired
- If TRUE (default) ignores Unity's timeScale
-
-
-
- Used to interpret AnimationCurves as eases.
- Public so it can be used by external ease factories
+ Update type
-
-
- This class contains a C# port of the easing equations created by Robert Penner (http://robertpenner.com/easing).
-
+
+ Updates every frame during Update calls
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
+
+ Updates every frame during LateUpdate calls
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
-
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
-
-
-
- Struct that stores two colors (used for LineRenderer tweens)
-
-
-
-
- What axis to constrain in case of Vector tweens
-
-
-
-
- Type of scramble to apply to string tweens
-
-
-
-
- No scrambling of characters
-
-
-
-
- A-Z + a-z + 0-9 characters
-
-
-
-
- A-Z characters
-
-
-
-
- a-z characters
-
-
-
-
- 0-9 characters
-
-
-
-
- Custom characters
-
-
-
-
- Path control point
-
-
-
-
- Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
-
-
-
-
- Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
-
-
-
-
- Returns a Vector3 with z = 0
-
-
-
-
- Returns the 2D angle between two vectors
-
-
-
-
- Gets the point on the path at the given percentage (0 to 1)
-
- The percentage (0 to 1) at which to get the point
- If TRUE constant speed is taken into account, otherwise not
-
-
-
- Public only so custom shortcuts can access some of these methods
-
+
+ Updates using FixedUpdate calls
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll
index 4210724..b0bb158 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb
index 73b8127..6ad404e 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll
index 1aed027..1b7d9ee 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb
index 809713b..d446c58 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll
index ea0b871..0298745 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb
index 0689185..5dbd96f 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.xml b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.xml
index 3771132..8ba34f3 100644
--- a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.xml
+++ b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween46.xml
@@ -4,6 +4,17 @@
DOTween46
+
+
+ Various utils that require Unity 4.6 or later
+
+
+
+
+ Converts the anchoredPosition of the first RectTransform to the second RectTransform,
+ taking into consideration offset, anchors and pivot, and returns the new anchoredPosition
+
+
Methods that extend known Unity objects and allow to directly create and control tweens from their instances.
@@ -181,16 +192,5 @@
Also stores the Text as the tween's target so it can be used for filtered operations
The value to tween toThe duration of the tween
-
-
- Various utils that require Unity 4.6 or later
-
-
-
-
- Converts the anchoredPosition of the first RectTransform to the second RectTransform,
- taking into consideration offset, anchors and pivot, and returns the new anchoredPosition
-
-
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll
index afd0c94..13a2fc3 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb
index 4438b97..b517c01 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML
index db17f44..6afe743 100644
--- a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML
+++ b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML
@@ -4,17 +4,6 @@
DOTweenEditor
-
-
- Not used as menu item anymore, but as a utiity function
-
-
-
-
- Setups DOTween
-
- If TRUE, no warning window appears in case there is no need for setup
-
Checks that the given editor texture use the correct import settings,
@@ -61,5 +50,16 @@
Full path for the given loaded assembly, assembly file included
+
+
+ Not used as menu item anymore, but as a utiity function
+
+
+
+
+ Setups DOTween
+
+ If TRUE, no warning window appears in case there is no need for setup
+
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll
index 7820f3b..d2ec7e2 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll and b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb
index fb8c228..544096d 100644
Binary files a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb and b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb differ
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/vs67D.tmp b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/vs67D.tmp
new file mode 100644
index 0000000..6afe743
--- /dev/null
+++ b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/vs67D.tmp
@@ -0,0 +1,65 @@
+
+
+
+ DOTweenEditor
+
+
+
+
+ Checks that the given editor texture use the correct import settings,
+ and applies them if they're incorrect.
+
+
+
+
+ Returns TRUE if addons setup is required.
+
+
+
+
+ Returns TRUE if the file/directory at the given path exists.
+
+ Path, relative to Unity's project folder
+
+
+
+
+ Converts the given project-relative path to a full path,
+ with backward (\) slashes).
+
+
+
+
+ Converts the given full path to a path usable with AssetDatabase methods
+ (relative to Unity's project folder, and with the correct Unity forward (/) slashes).
+
+
+
+
+ Connects to a asset.
+ If the asset already exists at the given path, loads it and returns it.
+ Otherwise, either returns NULL or automatically creates it before loading and returning it
+ (depending on the given parameters).
+
+ Asset type
+ File path (relative to Unity's project folder)
+ If TRUE and the requested asset doesn't exist, forces its creation
+
+
+
+ Full path for the given loaded assembly, assembly file included
+
+
+
+
+ Not used as menu item anymore, but as a utiity function
+
+
+
+
+ Setups DOTween
+
+ If TRUE, no warning window appears in case there is no need for setup
+
+
+
diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/vsBAE5.tmp b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/vsBAE5.tmp
new file mode 100644
index 0000000..db17f44
--- /dev/null
+++ b/UnityTests.Unity5/Assets/Demigiant/DOTween/Editor/vsBAE5.tmp
@@ -0,0 +1,65 @@
+
+
+
+ DOTweenEditor
+
+
+
+
+ Not used as menu item anymore, but as a utiity function
+
+
+
+
+ Setups DOTween
+
+ If TRUE, no warning window appears in case there is no need for setup
+
+
+
+ Checks that the given editor texture use the correct import settings,
+ and applies them if they're incorrect.
+
+
+
+
+ Returns TRUE if addons setup is required.
+
+
+
+
+ Returns TRUE if the file/directory at the given path exists.
+
+ Path, relative to Unity's project folder
+
+
+
+
+ Converts the given project-relative path to a full path,
+ with backward (\) slashes).
+
+
+
+
+ Converts the given full path to a path usable with AssetDatabase methods
+ (relative to Unity's project folder, and with the correct Unity forward (/) slashes).
+
+
+
+
+ Connects to a asset.
+ If the asset already exists at the given path, loads it and returns it.
+ Otherwise, either returns NULL or automatically creates it before loading and returning it
+ (depending on the given parameters).
+
+ Asset type
+ File path (relative to Unity's project folder)
+ If TRUE and the requested asset doesn't exist, forces its creation
+
+
+
+ Full path for the given loaded assembly, assembly file included
+
+
+
+
diff --git a/UnityTests.Unity5/Assets/UnityVS/Editor/UnityVS.VersionSpecific.dll b/UnityTests.Unity5/Assets/UnityVS/Editor/UnityVS.VersionSpecific.dll
index 5e90e3f..d80335c 100644
Binary files a/UnityTests.Unity5/Assets/UnityVS/Editor/UnityVS.VersionSpecific.dll and b/UnityTests.Unity5/Assets/UnityVS/Editor/UnityVS.VersionSpecific.dll differ
diff --git a/UnityTests.Unity5/Assets/UnityVS/Editor/UnityVS.VersionSpecific.dll.meta b/UnityTests.Unity5/Assets/UnityVS/Editor/UnityVS.VersionSpecific.dll.meta
index d12d43a..02282e3 100644
--- a/UnityTests.Unity5/Assets/UnityVS/Editor/UnityVS.VersionSpecific.dll.meta
+++ b/UnityTests.Unity5/Assets/UnityVS/Editor/UnityVS.VersionSpecific.dll.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 42c12149efdc035458bffa42058b9a04
-timeCreated: 1431691381
+timeCreated: 1437676366
licenseType: Free
PluginImporter:
serializedVersion: 1
diff --git a/UnityTests.Unity5/Assets/_Tests/TempTests.cs b/UnityTests.Unity5/Assets/_Tests/TempTests.cs
index fe057a5..1ffe664 100644
--- a/UnityTests.Unity5/Assets/_Tests/TempTests.cs
+++ b/UnityTests.Unity5/Assets/_Tests/TempTests.cs
@@ -14,15 +14,10 @@ public class TempTests : BrainBase
void Start()
{
- Tween t = target.DOJump(new Vector3(4, 3, 0), 2, 1, 1).SetRelative();
- if (delay > 0) t.SetDelay(delay);
- t.OnStart(()=>Debug.Log("Start"));
- t.OnComplete(()=>Debug.Log("Complete"));
-
-
- // Tween t = DOTween.Sequence().Append(target.DOMoveX(2, 1).SetRelative());
- // if (delay > 0) t.SetDelay(delay);
- // t.OnStart(()=>Debug.Log("Start"));
- // t.OnComplete(()=>Debug.Log("Complete"));
+ DOTween.Sequence()
+ .Append(target.DOMoveX(2, 2))
+ .Join(target.DOMoveY(2, 2))
+ .Append(target.DOScale(2, 2))
+ .Join(target.DORotate(new Vector3(0, 0, 180), 2));
}
}
\ No newline at end of file
diff --git a/UnityTests.Unity5/Assets/_Tests/TempTests.unity b/UnityTests.Unity5/Assets/_Tests/TempTests.unity
index 21b5ff3..9471771 100644
Binary files a/UnityTests.Unity5/Assets/_Tests/TempTests.unity and b/UnityTests.Unity5/Assets/_Tests/TempTests.unity differ
diff --git a/UnityTests.Unity5/ProjectSettings/ProjectSettings.asset b/UnityTests.Unity5/ProjectSettings/ProjectSettings.asset
index f889acc..348c752 100644
Binary files a/UnityTests.Unity5/ProjectSettings/ProjectSettings.asset and b/UnityTests.Unity5/ProjectSettings/ProjectSettings.asset differ
diff --git a/UnityTests.Unity5/ProjectSettings/ProjectVersion.txt b/UnityTests.Unity5/ProjectSettings/ProjectVersion.txt
index 802c8ce..78b2941 100644
--- a/UnityTests.Unity5/ProjectSettings/ProjectVersion.txt
+++ b/UnityTests.Unity5/ProjectSettings/ProjectVersion.txt
@@ -1,2 +1,2 @@
-m_EditorVersion: 5.0.2f1
+m_EditorVersion: 5.1.1f1
m_StandardAssetsVersion: 0
diff --git a/_DOTween.Assembly/DOTween/DOTween.cs b/_DOTween.Assembly/DOTween/DOTween.cs
index 85527cc..70dd059 100644
--- a/_DOTween.Assembly/DOTween/DOTween.cs
+++ b/_DOTween.Assembly/DOTween/DOTween.cs
@@ -32,7 +32,7 @@ namespace DG.Tweening
public class DOTween
{
/// DOTween's version
- public static readonly string Version = "1.0.800";
+ public static readonly string Version = "1.0.805";
///////////////////////////////////////////////
// Options ////////////////////////////////////
diff --git a/_DOTween.Assembly/DOTween/DOTween.csproj b/_DOTween.Assembly/DOTween/DOTween.csproj
index 8d4e52e..5e4c86b 100644
--- a/_DOTween.Assembly/DOTween/DOTween.csproj
+++ b/_DOTween.Assembly/DOTween/DOTween.csproj
@@ -49,7 +49,7 @@
- C:\Program Files\_Design\Unity\Editor\Data\Managed\UnityEngine.dll
+ C:\Program Files (x86)\Unity 3\Editor\Data\Managed\UnityEngine.dll
False
@@ -165,7 +165,7 @@ DEL $(TargetDir)\*.tmp
CD $(TargetDir)
echo Converting PDB to MDB and deleting PDB...
-"c:\Program Files\_Design\Unity 4.6\Editor\Data\MonoBleedingEdge\lib\mono\4.0\pdb2mdb.exe" $(TargetFileName)
+"c:\Program Files\pdb2mdb\pdb2mdb.exe" $(TargetFileName)
DEL $(TargetName).pdb
echo Exporting Assembly to %25DestinationDir%25
diff --git a/_DOTween.Assembly/DOTween/Sequence.cs b/_DOTween.Assembly/DOTween/Sequence.cs
index 6561cfd..dd7d999 100644
--- a/_DOTween.Assembly/DOTween/Sequence.cs
+++ b/_DOTween.Assembly/DOTween/Sequence.cs
@@ -39,8 +39,8 @@ namespace DG.Tweening
internal static Sequence DoPrepend(Sequence inSequence, Tween t)
{
if (t.loops == -1) t.loops = 1;
-// float tFullTime = t.delay + (t.duration * t.loops);
- float tFullTime = t.duration * t.loops;
+ float tFullTime = t.delay + (t.duration * t.loops);
+// float tFullTime = t.duration * t.loops;
inSequence.duration += tFullTime;
int len = inSequence._sequencedObjs.Count;
for (int i = 0; i < len; ++i) {
@@ -56,17 +56,17 @@ namespace DG.Tweening
{
TweenManager.AddActiveTweenToSequence(t);
-// // If t has a delay add it as an interval
-// atPosition += t.delay;
-// inSequence.lastTweenInsertTime = atPosition;
+ // If t has a delay add it as an interval
+ atPosition += t.delay;
+ inSequence.lastTweenInsertTime = atPosition;
t.isSequenced = t.creationLocked = true;
t.sequenceParent = inSequence;
if (t.loops == -1) t.loops = 1;
float tFullTime = t.duration * t.loops;
t.autoKill = false;
-// t.delay = t.elapsedDelay = 0;
-// t.delayComplete = true;
+ t.delay = t.elapsedDelay = 0;
+ t.delayComplete = true;
t.isSpeedBased = false;
t.sequencedPosition = atPosition;
t.sequencedEndPosition = atPosition + tFullTime;
diff --git a/_DOTween.Assembly/DOTween43/DOTween43.csproj b/_DOTween.Assembly/DOTween43/DOTween43.csproj
index 7976dd9..0702de5 100644
--- a/_DOTween.Assembly/DOTween43/DOTween43.csproj
+++ b/_DOTween.Assembly/DOTween43/DOTween43.csproj
@@ -49,7 +49,7 @@
- C:\Program Files\_Design\Unity 4.3\Editor\Data\Managed\UnityEngine.dll
+ C:\Program Files (x86)\Unity 45\Editor\Data\Managed\UnityEngine.dll
False
@@ -86,7 +86,7 @@ DEL $(TargetDir)\*.tmp
CD $(TargetDir)
echo Converting PDB to MDB and deleting PDB...
-"c:\Program Files\_Design\Unity 4.6\Editor\Data\MonoBleedingEdge\lib\mono\4.0\pdb2mdb.exe" $(TargetFileName)
+"c:\Program Files\pdb2mdb\pdb2mdb.exe" $(TargetFileName)
DEL $(TargetName).pdb
echo Exporting Assembly to %25DestinationDir%25
diff --git a/_DOTween.Assembly/DOTween46/DOTween46.csproj b/_DOTween.Assembly/DOTween46/DOTween46.csproj
index 83e770b..92e6342 100644
--- a/_DOTween.Assembly/DOTween46/DOTween46.csproj
+++ b/_DOTween.Assembly/DOTween46/DOTween46.csproj
@@ -47,11 +47,11 @@
- C:\Program Files\_Design\Unity 4.6\Editor\Data\Managed\UnityEngine.dll
+ C:\Program Files (x86)\Unity 46\Editor\Data\Managed\UnityEngine.dll
False
- C:\Program Files\_Design\Unity 4.6\Editor\Data\UnityExtensions\Unity\GUISystem\4.6.1\UnityEngine.UI.dll
+ C:\Program Files (x86)\Unity 46\Editor\Data\UnityExtensions\Unity\GUISystem\4.6.0\UnityEngine.UI.dll
False
@@ -88,7 +88,7 @@ DEL $(TargetDir)\*.tmp
CD $(TargetDir)
echo Converting PDB to MDB and deleting PDB...
-"c:\Program Files\_Design\Unity 4.6\Editor\Data\MonoBleedingEdge\lib\mono\4.0\pdb2mdb.exe" $(TargetFileName)
+"c:\Program Files\pdb2mdb\pdb2mdb.exe" $(TargetFileName)
DEL $(TargetName).pdb
echo Exporting Assembly to %25DestinationDir%25
diff --git a/_DOTween.Assembly/DOTween50/DOTween50.csproj b/_DOTween.Assembly/DOTween50/DOTween50.csproj
index adb0b48..fd0b1d4 100644
--- a/_DOTween.Assembly/DOTween50/DOTween50.csproj
+++ b/_DOTween.Assembly/DOTween50/DOTween50.csproj
@@ -47,7 +47,7 @@
- C:\Program Files\_Design\Unity 5\Editor\Data\Managed\UnityEngine.dll
+ C:\Program Files\Unity 5\Editor\Data\Managed\UnityEngine.dll
False
@@ -84,7 +84,7 @@ DEL $(TargetDir)\*.tmp
CD $(TargetDir)
echo Converting PDB to MDB and deleting PDB...
-"c:\Program Files\_Design\Unity 4.6\Editor\Data\MonoBleedingEdge\lib\mono\4.0\pdb2mdb.exe" $(TargetFileName)
+"c:\Program Files\pdb2mdb\pdb2mdb.exe" $(TargetFileName)
DEL $(TargetName).pdb
echo Exporting Assembly to %25DestinationDir%25
diff --git a/_DOTween.Assembly/DOTweenEditor/DOTweenEditor.csproj b/_DOTween.Assembly/DOTweenEditor/DOTweenEditor.csproj
index 194fb18..1417992 100644
--- a/_DOTween.Assembly/DOTweenEditor/DOTweenEditor.csproj
+++ b/_DOTween.Assembly/DOTweenEditor/DOTweenEditor.csproj
@@ -49,11 +49,11 @@
- C:\Program Files\_Design\Unity\Editor\Data\Managed\UnityEditor.dll
+ C:\Program Files (x86)\Unity 3\Editor\Data\Managed\UnityEditor.dll
False
- C:\Program Files\_Design\Unity\Editor\Data\Managed\UnityEngine.dll
+ C:\Program Files (x86)\Unity 3\Editor\Data\Managed\UnityEngine.dll
False
@@ -96,7 +96,7 @@ DEL $(TargetDir)\*.tmp
CD $(TargetDir)
echo Converting PDB to MDB and deleting PDB...
-"c:\Program Files\_Design\Unity 4.6\Editor\Data\MonoBleedingEdge\lib\mono\4.0\pdb2mdb.exe" $(TargetFileName)
+"c:\Program Files\pdb2mdb\pdb2mdb.exe" $(TargetFileName)
DEL $(TargetName).pdb
echo Exporting Assembly to %25DestinationDir%25
diff --git a/_DOTween.Assembly/bin/DOTween.XML b/_DOTween.Assembly/bin/DOTween.XML
index d5a9cfc..ed3c17f 100644
--- a/_DOTween.Assembly/bin/DOTween.XML
+++ b/_DOTween.Assembly/bin/DOTween.XML
@@ -4,158 +4,45 @@
DOTween
-
+
- Update type
+ Types of autoPlay behaviours
-
- Updates every frame during Update calls
+
+ No tween is automatically played
-
- Updates every frame during LateUpdate calls
+
+ Only Sequences are automatically played
-
- Updates using FixedUpdate calls
+
+ Only Tweeners are automatically played
-
+
+ All tweens are automatically played
+
+
- Path mode (used to determine correct LookAt orientation)
+ What axis to constrain in case of Vector tweens
-
- Ignores the path mode (and thus LookAt behaviour)
+
+ Called the first time the tween is set in a playing state, after any eventual delay
-
- Regular 3D path
-
-
- 2D top-down path
-
-
- 2D side-scroller path
-
-
+
- Used internally
+ Used in place of System.Func, which is not available in mscorlib.
-
+
- This class serves only as a utility class to store tween settings to apply on multiple tweens.
- It is in no way needed otherwise, since you can directly apply tween settings to a tween via chaining
+ Used in place of System.Action.
-
- A variable you can eventually Clear and reuse when needed,
- to avoid instantiating TweenParams objects
-
-
- Creates a new TweenParams object, which you can use to store tween settings
- to pass to multiple tweens via myTween.SetAs(myTweenParms)
-
-
- Clears and resets this TweenParams instance using default values,
- so it can be reused without instantiating another one
-
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
- If TRUE the tween will be automatically killed when complete
-
-
- Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
- The ID to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
- IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
- When using shorcuts the shortcut target is already assigned as the tween's target,
- so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
- The target to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
- Loop behaviour type (default: LoopType.Restart)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual overshoot or amplitude to use with Back or Elastic easeType (default is 1.70158)
- Eventual period to use with Elastic easeType (default is 0)
-
-
- Sets the ease of the tween using an AnimationCurve.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween using a custom ease function.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the recycling behaviour for the tween.
- If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
-
-
- Sets the update type to the one defined in DOTween.defaultUpdateType (UpdateType.Normal unless changed)
- and lets you choose if it should be independent from Unity's Time.timeScale
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the type of update (default or independent) for the tween
- The type of update (default: UpdateType.Normal)
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the onStart callback for the tween.
- Called the first time the tween is set in a playing state, after any eventual delay
-
-
- Sets the onPlay callback for the tween.
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Sets the onRewind callback for the tween.
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Sets the onUpdate callback for the tween.
- Called each time the tween updates
-
-
- Sets the onStepComplete callback for the tween.
- Called the moment the tween completes one loop cycle, even when going backwards
-
-
- Sets the onComplete callback for the tween.
- Called the moment the tween reaches its final forward position, loops included
-
-
- Sets the onKill callback for the tween.
- Called the moment the tween is killed
-
-
- Sets the onWaypointChange callback for the tween.
- Called when a path tween reaches a new waypoint
-
-
- Sets a delayed startup for the tween.
- Has no effect on Sequences or if the tween has already started
-
-
- If isRelative is TRUE sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ Public so it can be used by lose scripts related to DOTween (like DOTweenAnimation)
+
@@ -163,6 +50,720 @@
Contains all instance-based methods
+
+ Used internally inside Unity Editor, as a trick to update DOTween's inspector at every frame
+
+
+
+ Directly sets the current max capacity of Tweeners and Sequences
+ (meaning how many Tweeners and Sequences can be running at the same time),
+ so that DOTween doesn't need to automatically increase them in case the max is reached
+ (which might lead to hiccups when that happens).
+ Sequences capacity must be less or equal to Tweeners capacity
+ (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
+ Beware: use this method only when there are no tweens running.
+
+ Max Tweeners capacity.
+ Default: 200
+ Max Sequences capacity.
+ Default: 50
+
+
+
+ This class contains a C# port of the easing equations created by Robert Penner (http://robertpenner.com/easing).
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.
+
+
+ Current time (in frames or seconds).
+
+
+ Expected easing duration (in frames or seconds).
+
+ Unused: here to keep same delegate for all ease types.
+ Unused: here to keep same delegate for all ease types.
+
+ The eased value.
+
+
+
+
+ Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
+
+
+
+
+ Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
+
+
+
+
+ Used to interpret AnimationCurves as eases.
+ Public so it can be used by external ease factories
+
+
+
+
+ Additional notices passed to plugins when updating.
+ Public so it can be used by custom plugins. Internally, only PathPlugin uses it
+
+
+
+
+ None
+
+
+
+
+ Lets the plugin know that we restarted or rewinded
+
+
+
+
+ Public only so custom shortcuts can access some of these methods
+
+
+
+
+ Returns a Vector3 with z = 0
+
+
+
+
+ Returns the 2D angle between two vectors
+
+
+
+
+ Struct that stores two colors (used for LineRenderer tweens)
+
+
+
+
+ Used for tween callbacks
+
+
+
+
+ Used for tween callbacks
+
+
+
+
+ Used for custom and animationCurve-based ease functions. Must return a value between 0 and 1.
+
+
+
+
+ Main DOTween class. Contains static methods to create and control tweens in a generic way
+
+
+
+ DOTween's version
+
+
+ If TRUE (default) makes tweens slightly slower but safer, automatically taking care of a series of things
+ (like targets becoming null while a tween is playing).
+ Default: TRUE
+
+
+ If TRUE you will get a DOTween report when exiting play mode (only in the Editor).
+ Useful to know how many max Tweeners and Sequences you reached and optimize your final project accordingly.
+ Beware, this will slightly slow down your tweens while inside Unity Editor.
+ Default: FALSE
+
+
+ Global DOTween timeScale.
+ Default: 1
+
+
+ If TRUE, DOTween will use Time.smoothDeltaTime instead of Time.deltaTime for UpdateType.Normal and UpdateType.Late tweens
+ (unless they're set as timeScaleIndependent, in which case this setting will be ignored).
+ Setting this to TRUE will lead to smoother animations.
+ Default: FALSE
+
+
+ DOTween's log behaviour.
+ Default: LogBehaviour.ErrorsOnly
+
+
+ If TRUE draws path gizmos in Unity Editor (if the gizmos button is active).
+ Deactivate this if you want to avoid gizmos overhead while in Unity Editor
+
+
+ Default updateType for new tweens.
+ Default: UpdateType.Normal
+
+
+ Sets whether Unity's timeScale should be taken into account by default or not.
+ Default: false
+
+
+ Default autoPlay behaviour for new tweens.
+ Default: AutoPlay.All
+
+
+ Default autoKillOnComplete behaviour for new tweens.
+ Default: TRUE
+
+
+ Default loopType applied to all new tweens.
+ Default: LoopType.Restart
+
+
+ If TRUE all newly created tweens are set as recyclable, otherwise not.
+ Default: FALSE
+
+
+ Default ease applied to all new Tweeners (not to Sequences which always have Ease.Linear as default).
+ Default: Ease.InOutQuad
+
+
+ Default overshoot/amplitude used for eases
+ Default: 1.70158f
+
+
+ Default period used for eases
+ Default: 0
+
+
+
+ Must be called once, before the first ever DOTween call/reference,
+ otherwise it will be called automatically and will use default options.
+ Calling it a second time won't have any effect.
+ You can chain SetCapacity to this method, to directly set the max starting size of Tweeners and Sequences:
+ DOTween.Init(false, false, LogBehaviour.Default).SetCapacity(100, 20);
+
+ If TRUE all new tweens will be set for recycling, meaning that when killed,
+ instead of being destroyed, they will be put in a pool and reused instead of creating new tweens. This option allows you to avoid
+ GC allocations by reusing tweens, but you will have to take care of tween references, since they might result active
+ even if they were killed (since they might have been respawned and are now being used for other tweens).
+ If you want to automatically set your tween references to NULL when a tween is killed
+ you can use the OnKill callback like this:
+ .OnKill(()=> myTweenReference = null)
+ You can change this setting at any time by changing the static property,
+ or you can set the recycling behaviour for each tween separately, using:
+ SetRecyclable(bool recyclable)
+ Default: FALSE
+ If TRUE makes tweens slightly slower but safer, automatically taking care of a series of things
+ (like targets becoming null while a tween is playing).
+ You can change this setting at any time by changing the static property.
+ Default: FALSE
+ Type of logging to use.
+ You can change this setting at any time by changing the static property.
+ Default: ErrorsOnly
+
+
+
+ Directly sets the current max capacity of Tweeners and Sequences
+ (meaning how many Tweeners and Sequences can be running at the same time),
+ so that DOTween doesn't need to automatically increase them in case the max is reached
+ (which might lead to hiccups when that happens).
+ Sequences capacity must be less or equal to Tweeners capacity
+ (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
+ Beware: use this method only when there are no tweens running.
+
+ Max Tweeners capacity.
+ Default: 200
+ Max Sequences capacity.
+ Default: 50
+
+
+
+ Kills all tweens, clears all cached tween pools and plugins and resets the max Tweeners/Sequences capacities to the default values.
+
+ If TRUE also destroys DOTween's gameObject and resets its initializiation, default settings and everything else
+ (so that next time you use it it will need to be re-initialized)
+
+
+
+ Clears all cached tween pools.
+
+
+
+
+ Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
+ and returns the total number of invalid tweens found and removed.
+ Automatically called when loading a new scene if is TRUE.
+ BEWARE: this is a slightly expensive operation so use it with care
+
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a property or field to the given value using a custom plugin
+ The plugin to use. Each custom plugin implements a static Get() method
+ you'll need to call to assign the correct plugin in the correct way, like this:
+ CustomPlugin.Get()
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens only one axis of a Vector3 to the given value using default plugins.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+ The axis to tween
+
+
+ Tweens only the alpha of a Color to the given value using default plugins
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end value to reachThe tween's duration
+
+
+ Tweens a virtual property from the given start to the given end value
+ and implements a setter that allows to use that value with an external method or a lambda
+ Example:
+ To(MyMethod, 0, 12, 0.5f);
+ Where MyMethod is a function that accepts a float parameter (which will be the result of the virtual tween)
+ The action to perform with the tweened value
+ The value to start from
+ The end value to reach
+ The duration of the virtual tween
+
+
+
+ Punches a Vector3 towards the given direction and then back to the starting one
+ as if it was connected to the starting position via an elastic.
+ This tween type generates some GC allocations at startup
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The direction and strength of the punch
+ The duration of the tween
+ Indicates how much will the punch vibrate
+ Represents how much (0 to 1) the vector will go beyond the starting position when bouncing backwards.
+ 1 creates a full oscillation between the direction and the opposite decaying direction,
+ while 0 oscillates only between the starting position and the decaying direction
+
+
+ Shakes a Vector3 with the given values.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The duration of the tween
+ The shake strength
+ Indicates how much will the shake vibrate
+ Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
+ Setting it to 0 will shake along a single direction and behave like a random punch.
+ If TRUE only shakes on the X Y axis (looks better with things like cameras).
+
+
+ Shakes a Vector3 with the given values.
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The duration of the tween
+ The shake strength on each axis
+ Indicates how much will the shake vibrate
+ Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
+ Setting it to 0 will shake along a single direction and behave like a random punch.
+
+
+ Tweens a property or field to the given values using default plugins.
+ Ease is applied between each segment and not as a whole.
+ This tween type generates some GC allocations at startup
+ A getter for the field or property to tween.
+ Example usage with lambda:()=> myProperty
+ A setter for the field or property to tween
+ Example usage with lambda:x=> myProperty = x
+ The end values to reach for each segment. This array must have the same length as durations
+ The duration of each segment. This array must have the same length as endValues
+
+
+
+ Returns a new to be used for tween groups
+
+
+
+ Completes all tweens and returns the number of actual tweens completed
+ (meaning tweens that don't have infinite loops and were not already complete)
+
+
+ Completes all tweens with the given ID or target and returns the number of actual tweens completed
+ (meaning the tweens that don't have infinite loops and were not already complete)
+
+
+ Flips all tweens (changing their direction to forward if it was backwards and viceversa),
+ then returns the number of actual tweens flipped
+
+
+ Flips the tweens with the given ID or target (changing their direction to forward if it was backwards and viceversa),
+ then returns the number of actual tweens flipped
+
+
+ Sends all tweens to the given position (calculating also eventual loop cycles) and returns the actual tweens involved
+
+
+ Sends all tweens with the given ID or target to the given position (calculating also eventual loop cycles)
+ and returns the actual tweens involved
+
+
+ Kills all tweens and returns the number of actual tweens killed
+ If TRUE completes the tweens before killing them
+
+
+ Kills all tweens with the given ID or target and returns the number of actual tweens killed
+ If TRUE completes the tweens before killing them
+
+
+ Pauses all tweens and returns the number of actual tweens paused
+
+
+ Pauses all tweens with the given ID or target and returns the number of actual tweens paused
+ (meaning the tweens that were actually playing and have been paused)
+
+
+ Plays all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already playing or complete)
+
+
+ Plays all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Plays all tweens with the given target and the given ID, and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Plays backwards all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already started, playing backwards or rewinded)
+
+
+ Plays backwards all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already started, playing backwards or rewinded)
+
+
+ Plays forward all tweens and returns the number of actual tweens played
+ (meaning tweens that were not already playing forward or complete)
+
+
+ Plays forward all tweens with the given ID or target and returns the number of actual tweens played
+ (meaning the tweens that were not already playing forward or complete)
+
+
+ Restarts all tweens, then returns the number of actual tweens restarted
+
+
+ Restarts all tweens with the given ID or target, then returns the number of actual tweens restarted
+
+
+ Restarts all tweens with the given target and the given ID, and returns the number of actual tweens played
+ (meaning the tweens that were not already playing or complete)
+
+
+ Rewinds and pauses all tweens, then returns the number of actual tweens rewinded
+ (meaning tweens that were not already rewinded)
+
+
+ Rewinds and pauses all tweens with the given ID or target, then returns the number of actual tweens rewinded
+ (meaning the tweens that were not already rewinded)
+
+
+ Smoothly rewinds all tweens (delays excluded), then returns the number of actual tweens rewinding/rewinded
+ (meaning tweens that were not already rewinded).
+ A "smooth rewind" animates the tween to its start position,
+ skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
+ Note that a tween that was smoothly rewinded will have its play direction flipped
+
+
+ Smoothly rewinds all tweens (delays excluded) with the given ID or target, then returns the number of actual tweens rewinding/rewinded
+ (meaning the tweens that were not already rewinded).
+ A "smooth rewind" animates the tween to its start position,
+ skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
+ Note that a tween that was smoothly rewinded will have its play direction flipped
+
+
+ Toggles the play state of all tweens and returns the number of actual tweens toggled
+ (meaning tweens that could be played or paused, depending on the toggle state)
+
+
+ Toggles the play state of all tweens with the given ID or target and returns the number of actual tweens toggled
+ (meaning the tweens that could be played or paused, depending on the toggle state)
+
+
+
+ Returns TRUE if a tween with the given ID or target is active (regardless if it's playing or not).
+ You can also use this to know if a shortcut tween is active for a given target.
+ Example:
+ transform.DOMoveX(45, 1); // transform is automatically added as the tween target
+ DOTween.IsTweening(transform); // Returns true
+
+
+
+
+ Returns the total number of active and playing tweens.
+ A tween is considered as playing even if its delay is actually playing
+
+
+
+
+ Returns a list of all active tweens in a playing state.
+ Returns NULL if there are no active playing tweens.
+ Beware: each time you call this method a new list is generated, so use it for debug only
+
+
+
+
+ Returns a list of all active tweens in a paused state.
+ Returns NULL if there are no active paused tweens.
+ Beware: each time you call this method a new list is generated, so use it for debug only
+
+
+
+
+ Returns a list of all active tweens with the given id.
+ Returns NULL if there are no active tweens with the given id.
+ Beware: each time you call this method a new list is generated
+ If TRUE returns only the tweens with the given ID that are currently playing
+
+
+
+
+ Returns a list of all active tweens with the given target.
+ Returns NULL if there are no active tweens with the given target.
+ Beware: each time you call this method a new list is generated
+ If TRUE returns only the tweens with the given target that are currently playing
+
+
+
+
+ Creates virtual tweens that can be used to change other elements via their OnUpdate calls
+
+
+
+
+ Tweens a virtual float.
+ You can add regular settings to the generated tween,
+ but do not use SetUpdate or you will overwrite the onVirtualUpdate parameter
+
+ The value to start from
+ The value to tween to
+ The duration of the tween
+ A callback which must accept a parameter of type float, called at each update
+
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+ Eventual overshoot to use with Back ease
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The type of ease
+ Eventual amplitude to use with Elastic easeType
+ Eventual period to use with Elastic easeType
+
+
+ Returns a value based on the given ease and lifetime percentage (0 to 1)
+ The value to start from when lifetimePercentage is 0
+ The value to reach when lifetimePercentage is 1
+ The time percentage (0 to 1) at which the value should be taken
+ The AnimationCurve to use for ease
+
+
+ Fires the given callback after the given time.
+ Callback delay
+ Callback to fire when the delay has expired
+ If TRUE (default) ignores Unity's timeScale
+
+
+
+ Don't assign this! It's assigned automatically when creating 0 duration tweens
+
+
+
+
+ Don't assign this! It's assigned automatically when setting the ease to an AnimationCurve or to a custom ease function
+
+
+
+
+ Allows to wrap ease method in special ways, adding extra features
+
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ Ease type
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ AnimationCurve to use for the ease
+
+
+
+ Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
+
+ FPS at which the tween should be played
+ Custom ease function to use
+
Used to allow method chaining with DOTween.Init
@@ -183,84 +784,55 @@
Max Sequences capacity.
Default: 50
-
- Used internally inside Unity Editor, as a trick to update DOTween's inspector at every frame
-
-
+
- Directly sets the current max capacity of Tweeners and Sequences
- (meaning how many Tweeners and Sequences can be running at the same time),
- so that DOTween doesn't need to automatically increase them in case the max is reached
- (which might lead to hiccups when that happens).
- Sequences capacity must be less or equal to Tweeners capacity
- (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
- Beware: use this method only when there are no tweens running.
-
- Max Tweeners capacity.
- Default: 200
- Max Sequences capacity.
- Default: 50
-
-
-
- Public so it can be used by lose scripts related to DOTween (like DOTweenAnimation)
+ Path mode (used to determine correct LookAt orientation)
-
+
+ Ignores the path mode (and thus LookAt behaviour)
+
+
+ Regular 3D path
+
+
+ 2D top-down path
+
+
+ 2D side-scroller path
+
+
- Controls other tweens as a group
+ Type of path to use with DOPath tweens
-
+
+ Linear, composed of straight segments between each waypoint
+
+
+ Curved path (which uses Catmull-Rom curves)
+
+
- Indicates either a Tweener or a Sequence
+ Path control point
-
- Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Gets the point on the path at the given percentage (0 to 1)
+
+ The percentage (0 to 1) at which to get the point
+ If TRUE constant speed is taken into account, otherwise not
-
- TimeScale for the tween
+
+
+ This plugin generates some GC allocations at startup
+
-
- If TRUE the tween wil go backwards
-
-
- Id (usable for filtering with DOTween static methods). Can be an int, a string, an object, or anything else
-
-
- Tween target (usable for filtering with DOTween static methods). Automatically set by tween creation shorcuts
-
-
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Called when the tween state changes from playing to paused.
- If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
-
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Called each time the tween updates
-
-
- Called the moment the tween completes one loop cycle
-
-
- Called the moment the tween reaches completion (loops included)
-
-
- Called the moment the tween is killed
-
-
- Called when a path tween's current waypoint changes
-
-
- Gets and sets the time position (loops included, delays excluded) of the tween
+
+
+ Path plugin works exclusively with Transforms
+
@@ -291,349 +863,40 @@
In this mode the end value is is always considered relative
-
+
- This plugin generates some GC allocations at startup
+ Type of scramble to apply to string tweens
-
+
- Don't assign this! It's assigned automatically when creating 0 duration tweens
+ No scrambling of characters
-
+
- Don't assign this! It's assigned automatically when setting the ease to an AnimationCurve or to a custom ease function
+ A-Z + a-z + 0-9 characters
-
+
- Types of log behaviours
+ A-Z characters
-
- Log only warnings and errors
-
-
- Log warnings, errors and additional infos
-
-
- Log only errors
-
-
+
- Methods that extend Tween objects and allow to set their parameters
+ a-z characters
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
+
+
+ 0-9 characters
+
-
- Sets the autoKill behaviour of the tween.
- Has no effect if the tween has already started
- If TRUE the tween will be automatically killed when complete
-
-
- Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
- The ID to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
- IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
- When using shorcuts the shortcut target is already assigned as the tween's target,
- so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
- The target to assign to this tween. Can be an int, a string, an object or anything else.
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
-
-
- Sets the looping options for the tween.
- Has no effect if the tween has already started
- Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
- Loop behaviour type (default: LoopType.Restart)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual overshoot to use with Back ease (default is 1.70158)
-
-
- Sets the ease of the tween.
- If applied to Sequences eases the whole sequence animation
- Eventual amplitude to use with Elastic easeType (default is 1.70158)
- Eventual period to use with Elastic easeType (default is 0)
-
-
- Sets the ease of the tween using an AnimationCurve.
- If applied to Sequences eases the whole sequence animation
-
-
- Sets the ease of the tween using a custom ease function (which must return a value between 0 and 1).
- If applied to Sequences eases the whole sequence animation
-
-
- Allows the tween to be recycled after being killed.
-
-
- Sets the recycling behaviour for the tween.
- If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
-
-
- Sets the update type to UpdateType.Normal and lets you choose if it should be independent from Unity's Time.timeScale
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the type of update for the tween
- The type of update (defalt: UpdateType.Normal)
-
-
- Sets the type of update for the tween and lets you choose if it should be independent from Unity's Time.timeScale
- The type of update
- If TRUE the tween will ignore Unity's Time.timeScale
-
-
- Sets the onStart callback for the tween.
- Called the first time the tween is set in a playing state, after any eventual delay
-
-
- Sets the onPlay callback for the tween.
- Called when the tween is set in a playing state, after any eventual delay.
- Also called each time the tween resumes playing from a paused state
-
-
- Sets the onPlay callback for the tween.
- Called when the tween state changes from playing to paused.
- If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
-
- Sets the onRewind callback for the tween.
- Called when the tween is rewinded,
- either by calling Rewind or by reaching the start position while playing backwards.
- Rewinding a tween that is already rewinded will not fire this callback
-
-
- Sets the onUpdate callback for the tween.
- Called each time the tween updates
-
-
- Sets the onStepComplete callback for the tween.
- Called the moment the tween completes one loop cycle, even when going backwards
-
-
- Sets the onComplete callback for the tween.
- Called the moment the tween reaches its final forward position, loops included
-
-
- Sets the onKill callback for the tween.
- Called the moment the tween is killed
-
-
- Sets the onWaypointChange callback for the tween.
- Called when a path tween's current waypoint changes
-
-
- Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given one.
- Doesn't copy specific SetOptions settings: those will need to be applied manually each time.
- Has no effect if the tween has already started.
- NOTE: the tween's target will not be changed
- Tween from which to copy the parameters
-
-
- Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given TweenParams.
- Has no effect if the tween has already started.
- TweenParams from which to copy the parameters
-
-
- Adds the given tween to the end of the Sequence.
- Has no effect if the Sequence has already started
- The tween to append
-
-
- Adds the given tween to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The tween to prepend
-
-
- Inserts the given tween at the same time position of the last tween added to the Sequence.
- Has no effect if the Sequence has already started
-
-
- Inserts the given tween at the given time position in the Sequence,
- automatically adding an interval if needed.
- Has no effect if the Sequence has already started
- The time position where the tween will be placed
- The tween to insert
-
-
- Adds the given interval to the end of the Sequence.
- Has no effect if the Sequence has already started
- The interval duration
-
-
- Adds the given interval to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The interval duration
-
-
- Adds the given callback to the end of the Sequence.
- Has no effect if the Sequence has already started
- The callback to append
-
-
- Adds the given callback to the beginning of the Sequence, pushing forward the other nested content.
- Has no effect if the Sequence has already started
- The callback to prepend
-
-
- Inserts the given callback at the given time position in the Sequence,
- automatically adding an interval if needed.
- Has no effect if the Sequence has already started
- The time position where the callback will be placed
- The callback to insert
-
-
- Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
- then immediately sends the target to the previously set endValue.
-
-
- Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
- then immediately sends the target to the previously set endValue.
- If TRUE the FROM value will be calculated as relative to the current one
-
-
- Sets a delayed startup for the tween.
- Has no effect on Sequences or if the tween has already started
-
-
- Sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isRelative is TRUE sets the tween as relative
- (the endValue will be calculated as startValue + endValue instead than being used directly).
- Has no effect on Sequences or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
-
-
- If isSpeedBased is TRUE sets the tween as speed based
- (the duration will represent the number of units the tween moves x second).
- Has no effect on Sequences, nested tweens, or if the tween has already started
-
-
- Options for float tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector2 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector2 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- Selecting an axis will tween the vector only on that axis, leaving the others untouched
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Quaternion tweens
- If TRUE (default) the rotation will take the shortest route, and will not rotate more than 360°.
- If FALSE the rotation will be fully accounted. Is always FALSE if the tween is set as relative
-
-
- Options for Color tweens
- If TRUE only the alpha value of the color will be tweened
-
-
- Options for Vector4 tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector4 tweens
- If TRUE, rich text will be interpreted correctly while animated,
- otherwise all tags will be considered as normal text
- The type of scramble to use, if any
- A string containing the characters to use for scrambling.
- Use as many characters as possible (minimum 10) because DOTween uses a fast scramble mode which gives better results with more characters.
- Leave it to NULL to use default ones
-
-
- Options for Vector3Array tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Vector3Array tweens
- If TRUE the tween will smoothly snap all values to integers
-
-
- Options for Path tweens (created via the DOPath shortcut)
- The eventual movement axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
- The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
-
-
- Options for Path tweens (created via the DOPath shortcut)
- If TRUE the path will be automatically closed
- The eventual movement axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
- The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
- AxisConstrain.X | AxisConstraint.Y
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target towards the given position.
- Must be chained directly to the tween creation method or to a SetOptions
- The position to look at
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target towards another transform.
- Must be chained directly to the tween creation method or to a SetOptions
- The transform to look at
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
-
-
- Additional LookAt options for Path tweens (created via the DOPath shortcut).
- Orients the target to the path, with the given lookAhead.
- Must be chained directly to the tween creation method or to a SetOptions
- The percentage of lookAhead to use (0 to 1)
- The eventual direction to consider as "forward".
- If left to NULL defaults to the regular forward side of the transform
- The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Custom characters
+
@@ -822,48 +1085,26 @@
You can force a path to be initialized by calling myTween.ForceInit().
-
+
- Used for tween callbacks
+ Types of loop
-
+
+ Each loop cycle restarts from the beginning
+
+
+ The tween moves forward and backwards at alternate cycles
+
+
+ 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".
+ In case of String tweens works only if the tween is set as relative
+
+
- Used for tween callbacks
+ Controls other tweens as a group
-
-
- Used for custom and animationCurve-based ease functions. Must return a value between 0 and 1.
-
-
-
-
- Used in place of System.Func, which is not available in mscorlib.
-
-
-
-
- Used in place of System.Action.
-
-
-
-
- Types of autoPlay behaviours
-
-
-
- No tween is automatically played
-
-
- Only Sequences are automatically played
-
-
- Only Tweeners are automatically played
-
-
- All tweens are automatically played
-
Methods that extend known Unity objects and allow to directly create and control tweens from their instances
@@ -1468,564 +1709,499 @@
and returns the total number of tweens involved.
-
+
- Additional notices passed to plugins when updating.
- Public so it can be used by custom plugins. Internally, only PathPlugin uses it
+ This class serves only as a utility class to store tween settings to apply on multiple tweens.
+ It is in no way needed otherwise, since you can directly apply tween settings to a tween via chaining
-
+
+ A variable you can eventually Clear and reuse when needed,
+ to avoid instantiating TweenParams objects
+
+
+ Creates a new TweenParams object, which you can use to store tween settings
+ to pass to multiple tweens via myTween.SetAs(myTweenParms)
+
+
+ Clears and resets this TweenParams instance using default values,
+ so it can be reused without instantiating another one
+
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+ If TRUE the tween will be automatically killed when complete
+
+
+ Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
+ The ID to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
+ IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
+ When using shorcuts the shortcut target is already assigned as the tween's target,
+ so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
+ The target to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+ Loop behaviour type (default: LoopType.Restart)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual overshoot or amplitude to use with Back or Elastic easeType (default is 1.70158)
+ Eventual period to use with Elastic easeType (default is 0)
+
+
+ Sets the ease of the tween using an AnimationCurve.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween using a custom ease function.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the recycling behaviour for the tween.
+ If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
+
+
+ Sets the update type to the one defined in DOTween.defaultUpdateType (UpdateType.Normal unless changed)
+ and lets you choose if it should be independent from Unity's Time.timeScale
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the type of update (default or independent) for the tween
+ The type of update (default: UpdateType.Normal)
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the onStart callback for the tween.
+ Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
+
+
+ Sets the onRewind callback for the tween.
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
+
+
+ Sets the onUpdate callback for the tween.
+ Called each time the tween updates
+
+
+ Sets the onStepComplete callback for the tween.
+ Called the moment the tween completes one loop cycle, even when going backwards
+
+
+ Sets the onComplete callback for the tween.
+ Called the moment the tween reaches its final forward position, loops included
+
+
+ Sets the onKill callback for the tween.
+ Called the moment the tween is killed
+
+
+ Sets the onWaypointChange callback for the tween.
+ Called when a path tween reaches a new waypoint
+
+
+ Sets a delayed startup for the tween.
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isRelative is TRUE sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
- None
+ Methods that extend Tween objects and allow to set their parameters
-
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+
+
+ Sets the autoKill behaviour of the tween.
+ Has no effect if the tween has already started
+ If TRUE the tween will be automatically killed when complete
+
+
+ Sets an ID for the tween, which can then be used as a filter with DOTween's static methods.
+ The ID to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the target for the tween, which can then be used as a filter with DOTween's static methods.
+ IMPORTANT: use it with caution. If you just want to set an ID for the tween use SetId instead.
+ When using shorcuts the shortcut target is already assigned as the tween's target,
+ so using this method will overwrite it and prevent shortcut-operations like myTarget.DOPause from working correctly.
+ The target to assign to this tween. Can be an int, a string, an object or anything else.
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+
+
+ Sets the looping options for the tween.
+ Has no effect if the tween has already started
+ Number of cycles to play (-1 for infinite - will be converted to 1 in case the tween is nested in a Sequence)
+ Loop behaviour type (default: LoopType.Restart)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual overshoot to use with Back ease (default is 1.70158)
+
+
+ Sets the ease of the tween.
+ If applied to Sequences eases the whole sequence animation
+ Eventual amplitude to use with Elastic easeType (default is 1.70158)
+ Eventual period to use with Elastic easeType (default is 0)
+
+
+ Sets the ease of the tween using an AnimationCurve.
+ If applied to Sequences eases the whole sequence animation
+
+
+ Sets the ease of the tween using a custom ease function (which must return a value between 0 and 1).
+ If applied to Sequences eases the whole sequence animation
+
+
+ Allows the tween to be recycled after being killed.
+
+
+ Sets the recycling behaviour for the tween.
+ If TRUE the tween will be recycled after being killed, otherwise it will be destroyed.
+
+
+ Sets the update type to UpdateType.Normal and lets you choose if it should be independent from Unity's Time.timeScale
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the type of update for the tween
+ The type of update (defalt: UpdateType.Normal)
+
+
+ Sets the type of update for the tween and lets you choose if it should be independent from Unity's Time.timeScale
+ The type of update
+ If TRUE the tween will ignore Unity's Time.timeScale
+
+
+ Sets the onStart callback for the tween.
+ Called the first time the tween is set in a playing state, after any eventual delay
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
+
+
+ Sets the onPlay callback for the tween.
+ Called when the tween state changes from playing to paused.
+ If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
+
+
+ Sets the onRewind callback for the tween.
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
+
+
+ Sets the onUpdate callback for the tween.
+ Called each time the tween updates
+
+
+ Sets the onStepComplete callback for the tween.
+ Called the moment the tween completes one loop cycle, even when going backwards
+
+
+ Sets the onComplete callback for the tween.
+ Called the moment the tween reaches its final forward position, loops included
+
+
+ Sets the onKill callback for the tween.
+ Called the moment the tween is killed
+
+
+ Sets the onWaypointChange callback for the tween.
+ Called when a path tween's current waypoint changes
+
+
+ Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given one.
+ Doesn't copy specific SetOptions settings: those will need to be applied manually each time.
+ Has no effect if the tween has already started.
+ NOTE: the tween's target will not be changed
+ Tween from which to copy the parameters
+
+
+ Sets the parameters of the tween (id, ease, loops, delay, timeScale, callbacks, etc) as the parameters of the given TweenParams.
+ Has no effect if the tween has already started.
+ TweenParams from which to copy the parameters
+
+
+ Adds the given tween to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The tween to append
+
+
+ Adds the given tween to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The tween to prepend
+
+
+ Inserts the given tween at the same time position of the last tween added to the Sequence.
+ Has no effect if the Sequence has already started
+
+
+ Inserts the given tween at the given time position in the Sequence,
+ automatically adding an interval if needed.
+ Has no effect if the Sequence has already started
+ The time position where the tween will be placed
+ The tween to insert
+
+
+ Adds the given interval to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The interval duration
+
+
+ Adds the given interval to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The interval duration
+
+
+ Adds the given callback to the end of the Sequence.
+ Has no effect if the Sequence has already started
+ The callback to append
+
+
+ Adds the given callback to the beginning of the Sequence, pushing forward the other nested content.
+ Has no effect if the Sequence has already started
+ The callback to prepend
+
+
+ Inserts the given callback at the given time position in the Sequence,
+ automatically adding an interval if needed.
+ Has no effect if the Sequence has already started
+ The time position where the callback will be placed
+ The callback to insert
+
+
+ Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
+ then immediately sends the target to the previously set endValue.
+
+
+ Changes a TO tween into a FROM tween: sets the current target's position as the tween's endValue
+ then immediately sends the target to the previously set endValue.
+ If TRUE the FROM value will be calculated as relative to the current one
+
+
+ Sets a delayed startup for the tween.
+ Has no effect on Sequences or if the tween has already started
+
+
+ Sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isRelative is TRUE sets the tween as relative
+ (the endValue will be calculated as startValue + endValue instead than being used directly).
+ Has no effect on Sequences or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ If isSpeedBased is TRUE sets the tween as speed based
+ (the duration will represent the number of units the tween moves x second).
+ Has no effect on Sequences, nested tweens, or if the tween has already started
+
+
+ Options for float tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector2 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector2 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ Selecting an axis will tween the vector only on that axis, leaving the others untouched
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Quaternion tweens
+ If TRUE (default) the rotation will take the shortest route, and will not rotate more than 360°.
+ If FALSE the rotation will be fully accounted. Is always FALSE if the tween is set as relative
+
+
+ Options for Color tweens
+ If TRUE only the alpha value of the color will be tweened
+
+
+ Options for Vector4 tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector4 tweens
+ If TRUE, rich text will be interpreted correctly while animated,
+ otherwise all tags will be considered as normal text
+ The type of scramble to use, if any
+ A string containing the characters to use for scrambling.
+ Use as many characters as possible (minimum 10) because DOTween uses a fast scramble mode which gives better results with more characters.
+ Leave it to NULL to use default ones
+
+
+ Options for Vector3Array tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Vector3Array tweens
+ If TRUE the tween will smoothly snap all values to integers
+
+
+ Options for Path tweens (created via the DOPath shortcut)
+ The eventual movement axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+ The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+
+
+ Options for Path tweens (created via the DOPath shortcut)
+ If TRUE the path will be automatically closed
+ The eventual movement axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+ The eventual rotation axis to lock. You can input multiple axis if you separate them like this:
+ AxisConstrain.X | AxisConstraint.Y
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target towards the given position.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The position to look at
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target towards another transform.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The transform to look at
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
+ Additional LookAt options for Path tweens (created via the DOPath shortcut).
+ Orients the target to the path, with the given lookAhead.
+ Must be chained directly to the tween creation method or to a SetOptions
+ The percentage of lookAhead to use (0 to 1)
+ The eventual direction to consider as "forward".
+ If left to NULL defaults to the regular forward side of the transform
+ The vector that defines in which direction up is (default: Vector3.up)
+
+
- Lets the plugin know that we restarted or rewinded
+ Types of log behaviours
-
+
+ Log only warnings and errors
+
+
+ Log warnings, errors and additional infos
+
+
+ Log only errors
+
+
- Type of path to use with DOPath tweens
+ Indicates either a Tweener or a Sequence
-
- Linear, composed of straight segments between each waypoint
+
+ TimeScale for the tween
-
- Curved path (which uses Catmull-Rom curves)
+
+ If TRUE the tween wil go backwards
-
-
- Main DOTween class. Contains static methods to create and control tweens in a generic way
-
+
+ Id (usable for filtering with DOTween static methods). Can be an int, a string, an object, or anything else
-
- DOTween's version
+
+ Tween target (usable for filtering with DOTween static methods). Automatically set by tween creation shorcuts
-
- If TRUE (default) makes tweens slightly slower but safer, automatically taking care of a series of things
- (like targets becoming null while a tween is playing).
- Default: TRUE
+
+ Called when the tween is set in a playing state, after any eventual delay.
+ Also called each time the tween resumes playing from a paused state
-
- If TRUE you will get a DOTween report when exiting play mode (only in the Editor).
- Useful to know how many max Tweeners and Sequences you reached and optimize your final project accordingly.
- Beware, this will slightly slow down your tweens while inside Unity Editor.
- Default: FALSE
+
+ Called when the tween state changes from playing to paused.
+ If the tween has autoKill set to FALSE, this is called also when the tween reaches completion.
-
- Global DOTween timeScale.
- Default: 1
+
+ Called when the tween is rewinded,
+ either by calling Rewind or by reaching the start position while playing backwards.
+ Rewinding a tween that is already rewinded will not fire this callback
-
- If TRUE, DOTween will use Time.smoothDeltaTime instead of Time.deltaTime for UpdateType.Normal and UpdateType.Late tweens
- (unless they're set as timeScaleIndependent, in which case this setting will be ignored).
- Setting this to TRUE will lead to smoother animations.
- Default: FALSE
+
+ Called each time the tween updates
-
- If TRUE draws path gizmos in Unity Editor (if the gizmos button is active).
- Deactivate this if you want to avoid gizmos overhead while in Unity Editor
+
+ Called the moment the tween completes one loop cycle
-
- Default updateType for new tweens.
- Default: UpdateType.Normal
+
+ Called the moment the tween reaches completion (loops included)
-
- Sets whether Unity's timeScale should be taken into account by default or not.
- Default: false
+
+ Called the moment the tween is killed
-
- Default autoPlay behaviour for new tweens.
- Default: AutoPlay.All
+
+ Called when a path tween's current waypoint changes
-
- Default autoKillOnComplete behaviour for new tweens.
- Default: TRUE
-
-
- Default loopType applied to all new tweens.
- Default: LoopType.Restart
-
-
- If TRUE all newly created tweens are set as recyclable, otherwise not.
- Default: FALSE
-
-
- Default ease applied to all new Tweeners (not to Sequences which always have Ease.Linear as default).
- Default: Ease.InOutQuad
-
-
- Default overshoot/amplitude used for eases
- Default: 1.70158f
-
-
- Default period used for eases
- Default: 0
-
-
-
- Must be called once, before the first ever DOTween call/reference,
- otherwise it will be called automatically and will use default options.
- Calling it a second time won't have any effect.
- You can chain SetCapacity to this method, to directly set the max starting size of Tweeners and Sequences:
- DOTween.Init(false, false, LogBehaviour.Default).SetCapacity(100, 20);
-
- If TRUE all new tweens will be set for recycling, meaning that when killed,
- instead of being destroyed, they will be put in a pool and reused instead of creating new tweens. This option allows you to avoid
- GC allocations by reusing tweens, but you will have to take care of tween references, since they might result active
- even if they were killed (since they might have been respawned and are now being used for other tweens).
- If you want to automatically set your tween references to NULL when a tween is killed
- you can use the OnKill callback like this:
- .OnKill(()=> myTweenReference = null)
- You can change this setting at any time by changing the static property,
- or you can set the recycling behaviour for each tween separately, using:
- SetRecyclable(bool recyclable)
- Default: FALSE
- If TRUE makes tweens slightly slower but safer, automatically taking care of a series of things
- (like targets becoming null while a tween is playing).
- You can change this setting at any time by changing the static property.
- Default: FALSE
- Type of logging to use.
- You can change this setting at any time by changing the static property.
- Default: ErrorsOnly
-
-
-
- Directly sets the current max capacity of Tweeners and Sequences
- (meaning how many Tweeners and Sequences can be running at the same time),
- so that DOTween doesn't need to automatically increase them in case the max is reached
- (which might lead to hiccups when that happens).
- Sequences capacity must be less or equal to Tweeners capacity
- (if you pass a low Tweener capacity it will be automatically increased to match the Sequence's).
- Beware: use this method only when there are no tweens running.
-
- Max Tweeners capacity.
- Default: 200
- Max Sequences capacity.
- Default: 50
-
-
-
- Kills all tweens, clears all cached tween pools and plugins and resets the max Tweeners/Sequences capacities to the default values.
-
- If TRUE also destroys DOTween's gameObject and resets its initializiation, default settings and everything else
- (so that next time you use it it will need to be re-initialized)
-
-
-
- Clears all cached tween pools.
-
-
-
-
- Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
- and returns the total number of invalid tweens found and removed.
- Automatically called when loading a new scene if is TRUE.
- BEWARE: this is a slightly expensive operation so use it with care
-
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a property or field to the given value using a custom plugin
- The plugin to use. Each custom plugin implements a static Get() method
- you'll need to call to assign the correct plugin in the correct way, like this:
- CustomPlugin.Get()
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens only one axis of a Vector3 to the given value using default plugins.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
- The axis to tween
-
-
- Tweens only the alpha of a Color to the given value using default plugins
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end value to reachThe tween's duration
-
-
- Tweens a virtual property from the given start to the given end value
- and implements a setter that allows to use that value with an external method or a lambda
- Example:
- To(MyMethod, 0, 12, 0.5f);
- Where MyMethod is a function that accepts a float parameter (which will be the result of the virtual tween)
- The action to perform with the tweened value
- The value to start from
- The end value to reach
- The duration of the virtual tween
-
-
-
- Punches a Vector3 towards the given direction and then back to the starting one
- as if it was connected to the starting position via an elastic.
- This tween type generates some GC allocations at startup
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The direction and strength of the punch
- The duration of the tween
- Indicates how much will the punch vibrate
- Represents how much (0 to 1) the vector will go beyond the starting position when bouncing backwards.
- 1 creates a full oscillation between the direction and the opposite decaying direction,
- while 0 oscillates only between the starting position and the decaying direction
-
-
- Shakes a Vector3 with the given values.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The duration of the tween
- The shake strength
- Indicates how much will the shake vibrate
- Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
- Setting it to 0 will shake along a single direction and behave like a random punch.
- If TRUE only shakes on the X Y axis (looks better with things like cameras).
-
-
- Shakes a Vector3 with the given values.
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The duration of the tween
- The shake strength on each axis
- Indicates how much will the shake vibrate
- Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
- Setting it to 0 will shake along a single direction and behave like a random punch.
-
-
- Tweens a property or field to the given values using default plugins.
- Ease is applied between each segment and not as a whole.
- This tween type generates some GC allocations at startup
- A getter for the field or property to tween.
- Example usage with lambda:()=> myProperty
- A setter for the field or property to tween
- Example usage with lambda:x=> myProperty = x
- The end values to reach for each segment. This array must have the same length as durations
- The duration of each segment. This array must have the same length as endValues
-
-
-
- Returns a new to be used for tween groups
-
-
-
- Completes all tweens and returns the number of actual tweens completed
- (meaning tweens that don't have infinite loops and were not already complete)
-
-
- Completes all tweens with the given ID or target and returns the number of actual tweens completed
- (meaning the tweens that don't have infinite loops and were not already complete)
-
-
- Flips all tweens (changing their direction to forward if it was backwards and viceversa),
- then returns the number of actual tweens flipped
-
-
- Flips the tweens with the given ID or target (changing their direction to forward if it was backwards and viceversa),
- then returns the number of actual tweens flipped
-
-
- Sends all tweens to the given position (calculating also eventual loop cycles) and returns the actual tweens involved
-
-
- Sends all tweens with the given ID or target to the given position (calculating also eventual loop cycles)
- and returns the actual tweens involved
-
-
- Kills all tweens and returns the number of actual tweens killed
- If TRUE completes the tweens before killing them
-
-
- Kills all tweens with the given ID or target and returns the number of actual tweens killed
- If TRUE completes the tweens before killing them
-
-
- Pauses all tweens and returns the number of actual tweens paused
-
-
- Pauses all tweens with the given ID or target and returns the number of actual tweens paused
- (meaning the tweens that were actually playing and have been paused)
-
-
- Plays all tweens and returns the number of actual tweens played
- (meaning tweens that were not already playing or complete)
-
-
- Plays all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Plays all tweens with the given target and the given ID, and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Plays backwards all tweens and returns the number of actual tweens played
- (meaning tweens that were not already started, playing backwards or rewinded)
-
-
- Plays backwards all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already started, playing backwards or rewinded)
-
-
- Plays forward all tweens and returns the number of actual tweens played
- (meaning tweens that were not already playing forward or complete)
-
-
- Plays forward all tweens with the given ID or target and returns the number of actual tweens played
- (meaning the tweens that were not already playing forward or complete)
-
-
- Restarts all tweens, then returns the number of actual tweens restarted
-
-
- Restarts all tweens with the given ID or target, then returns the number of actual tweens restarted
-
-
- Restarts all tweens with the given target and the given ID, and returns the number of actual tweens played
- (meaning the tweens that were not already playing or complete)
-
-
- Rewinds and pauses all tweens, then returns the number of actual tweens rewinded
- (meaning tweens that were not already rewinded)
-
-
- Rewinds and pauses all tweens with the given ID or target, then returns the number of actual tweens rewinded
- (meaning the tweens that were not already rewinded)
-
-
- Smoothly rewinds all tweens (delays excluded), then returns the number of actual tweens rewinding/rewinded
- (meaning tweens that were not already rewinded).
- A "smooth rewind" animates the tween to its start position,
- skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
- Note that a tween that was smoothly rewinded will have its play direction flipped
-
-
- Smoothly rewinds all tweens (delays excluded) with the given ID or target, then returns the number of actual tweens rewinding/rewinded
- (meaning the tweens that were not already rewinded).
- A "smooth rewind" animates the tween to its start position,
- skipping all elapsed loops (except in case of LoopType.Incremental) while keeping the animation fluent.
- Note that a tween that was smoothly rewinded will have its play direction flipped
-
-
- Toggles the play state of all tweens and returns the number of actual tweens toggled
- (meaning tweens that could be played or paused, depending on the toggle state)
-
-
- Toggles the play state of all tweens with the given ID or target and returns the number of actual tweens toggled
- (meaning the tweens that could be played or paused, depending on the toggle state)
-
-
-
- Returns TRUE if a tween with the given ID or target is active (regardless if it's playing or not).
- You can also use this to know if a shortcut tween is active for a given target.
- Example:
- transform.DOMoveX(45, 1); // transform is automatically added as the tween target
- DOTween.IsTweening(transform); // Returns true
-
-
-
-
- Returns the total number of active and playing tweens.
- A tween is considered as playing even if its delay is actually playing
-
-
-
-
- Returns a list of all active tweens in a playing state.
- Returns NULL if there are no active playing tweens.
- Beware: each time you call this method a new list is generated, so use it for debug only
-
-
-
-
- Returns a list of all active tweens in a paused state.
- Returns NULL if there are no active paused tweens.
- Beware: each time you call this method a new list is generated, so use it for debug only
-
-
-
-
- Returns a list of all active tweens with the given id.
- Returns NULL if there are no active tweens with the given id.
- Beware: each time you call this method a new list is generated
- If TRUE returns only the tweens with the given ID that are currently playing
-
-
-
-
- Returns a list of all active tweens with the given target.
- Returns NULL if there are no active tweens with the given target.
- Beware: each time you call this method a new list is generated
- If TRUE returns only the tweens with the given target that are currently playing
-
-
-
- DOTween's log behaviour.
- Default: LogBehaviour.ErrorsOnly
-
-
-
- Path plugin works exclusively with Transforms
-
-
-
-
- Allows to wrap ease method in special ways, adding extra features
-
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- Ease type
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- AnimationCurve to use for the ease
-
-
-
- Converts the given ease so that it also creates a stop-motion effect, by playing the tween at the given FPS
-
- FPS at which the tween should be played
- Custom ease function to use
-
-
-
- Types of loop
-
-
-
- Each loop cycle restarts from the beginning
-
-
- The tween moves forward and backwards at alternate cycles
-
-
- 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".
- In case of String tweens works only if the tween is set as relative
+
+ Gets and sets the time position (loops included, delays excluded) of the tween
@@ -2058,200 +2234,24 @@
The new end value
If bigger than 0 applies it as the new tween duration
-
+
- Creates virtual tweens that can be used to change other elements via their OnUpdate calls
+ Used internally
-
+
- Tweens a virtual float.
- You can add regular settings to the generated tween,
- but do not use SetUpdate or you will overwrite the onVirtualUpdate parameter
-
- The value to start from
- The value to tween to
- The duration of the tween
- A callback which must accept a parameter of type float, called at each update
-
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
- Eventual overshoot to use with Back ease
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The type of ease
- Eventual amplitude to use with Elastic easeType
- Eventual period to use with Elastic easeType
-
-
- Returns a value based on the given ease and lifetime percentage (0 to 1)
- The value to start from when lifetimePercentage is 0
- The value to reach when lifetimePercentage is 1
- The time percentage (0 to 1) at which the value should be taken
- The AnimationCurve to use for ease
-
-
- Fires the given callback after the given time.
- Callback delay
- Callback to fire when the delay has expired
- If TRUE (default) ignores Unity's timeScale
-
-
-
- Used to interpret AnimationCurves as eases.
- Public so it can be used by external ease factories
+ Update type
-
-
- This class contains a C# port of the easing equations created by Robert Penner (http://robertpenner.com/easing).
-
+
+ Updates every frame during Update calls
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
+
+ Updates every frame during LateUpdate calls
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
-
-
-
- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.
-
-
- Current time (in frames or seconds).
-
-
- Expected easing duration (in frames or seconds).
-
- Unused: here to keep same delegate for all ease types.
- Unused: here to keep same delegate for all ease types.
-
- The eased value.
-
-
-
-
- Struct that stores two colors (used for LineRenderer tweens)
-
-
-
-
- What axis to constrain in case of Vector tweens
-
-
-
-
- Type of scramble to apply to string tweens
-
-
-
-
- No scrambling of characters
-
-
-
-
- A-Z + a-z + 0-9 characters
-
-
-
-
- A-Z characters
-
-
-
-
- a-z characters
-
-
-
-
- 0-9 characters
-
-
-
-
- Custom characters
-
-
-
-
- Path control point
-
-
-
-
- Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
-
-
-
-
- Returns a value between 0 and 1 (inclusive) based on the elapsed time and ease selected
-
-
-
-
- Returns a Vector3 with z = 0
-
-
-
-
- Returns the 2D angle between two vectors
-
-
-
-
- Gets the point on the path at the given percentage (0 to 1)
-
- The percentage (0 to 1) at which to get the point
- If TRUE constant speed is taken into account, otherwise not
-
-
-
- Public only so custom shortcuts can access some of these methods
-
+
+ Updates using FixedUpdate calls
diff --git a/_DOTween.Assembly/bin/DOTween.dll b/_DOTween.Assembly/bin/DOTween.dll
index 4210724..b0bb158 100644
Binary files a/_DOTween.Assembly/bin/DOTween.dll and b/_DOTween.Assembly/bin/DOTween.dll differ
diff --git a/_DOTween.Assembly/bin/DOTween.dll.mdb b/_DOTween.Assembly/bin/DOTween.dll.mdb
index 73b8127..6ad404e 100644
Binary files a/_DOTween.Assembly/bin/DOTween.dll.mdb and b/_DOTween.Assembly/bin/DOTween.dll.mdb differ
diff --git a/_DOTween.Assembly/bin/DOTween43.dll b/_DOTween.Assembly/bin/DOTween43.dll
index 1aed027..1b7d9ee 100644
Binary files a/_DOTween.Assembly/bin/DOTween43.dll and b/_DOTween.Assembly/bin/DOTween43.dll differ
diff --git a/_DOTween.Assembly/bin/DOTween43.dll.mdb b/_DOTween.Assembly/bin/DOTween43.dll.mdb
index 809713b..d446c58 100644
Binary files a/_DOTween.Assembly/bin/DOTween43.dll.mdb and b/_DOTween.Assembly/bin/DOTween43.dll.mdb differ
diff --git a/_DOTween.Assembly/bin/DOTween46.dll b/_DOTween.Assembly/bin/DOTween46.dll
index ea0b871..0298745 100644
Binary files a/_DOTween.Assembly/bin/DOTween46.dll and b/_DOTween.Assembly/bin/DOTween46.dll differ
diff --git a/_DOTween.Assembly/bin/DOTween46.dll.mdb b/_DOTween.Assembly/bin/DOTween46.dll.mdb
index 0689185..5dbd96f 100644
Binary files a/_DOTween.Assembly/bin/DOTween46.dll.mdb and b/_DOTween.Assembly/bin/DOTween46.dll.mdb differ
diff --git a/_DOTween.Assembly/bin/DOTween46.xml b/_DOTween.Assembly/bin/DOTween46.xml
index 3771132..8ba34f3 100644
--- a/_DOTween.Assembly/bin/DOTween46.xml
+++ b/_DOTween.Assembly/bin/DOTween46.xml
@@ -4,6 +4,17 @@
DOTween46
+
+
+ Various utils that require Unity 4.6 or later
+
+
+
+
+ Converts the anchoredPosition of the first RectTransform to the second RectTransform,
+ taking into consideration offset, anchors and pivot, and returns the new anchoredPosition
+
+
Methods that extend known Unity objects and allow to directly create and control tweens from their instances.
@@ -181,16 +192,5 @@
Also stores the Text as the tween's target so it can be used for filtered operations
The value to tween toThe duration of the tween
-
-
- Various utils that require Unity 4.6 or later
-
-
-
-
- Converts the anchoredPosition of the first RectTransform to the second RectTransform,
- taking into consideration offset, anchors and pivot, and returns the new anchoredPosition
-
-
diff --git a/_DOTween.Assembly/bin/DOTween50.dll b/_DOTween.Assembly/bin/DOTween50.dll
index afd0c94..13a2fc3 100644
Binary files a/_DOTween.Assembly/bin/DOTween50.dll and b/_DOTween.Assembly/bin/DOTween50.dll differ
diff --git a/_DOTween.Assembly/bin/DOTween50.dll.mdb b/_DOTween.Assembly/bin/DOTween50.dll.mdb
index 4438b97..b517c01 100644
Binary files a/_DOTween.Assembly/bin/DOTween50.dll.mdb and b/_DOTween.Assembly/bin/DOTween50.dll.mdb differ
diff --git a/_DOTween.Assembly/bin/Editor/DOTweenEditor.XML b/_DOTween.Assembly/bin/Editor/DOTweenEditor.XML
index db17f44..6afe743 100644
--- a/_DOTween.Assembly/bin/Editor/DOTweenEditor.XML
+++ b/_DOTween.Assembly/bin/Editor/DOTweenEditor.XML
@@ -4,17 +4,6 @@
DOTweenEditor
-
-
- Not used as menu item anymore, but as a utiity function
-
-
-
-
- Setups DOTween
-
- If TRUE, no warning window appears in case there is no need for setup
-
Checks that the given editor texture use the correct import settings,
@@ -61,5 +50,16 @@
Full path for the given loaded assembly, assembly file included
+
+
+ Not used as menu item anymore, but as a utiity function
+
+
+
+
+ Setups DOTween
+
+ If TRUE, no warning window appears in case there is no need for setup
+
diff --git a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll
index 7820f3b..d2ec7e2 100644
Binary files a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll and b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll differ
diff --git a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb
index fb8c228..544096d 100644
Binary files a/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb and b/_DOTween.Assembly/bin/Editor/DOTweenEditor.dll.mdb differ