diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML index b562aa2..4e2875b 100644 --- a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML +++ b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.XML @@ -1021,6 +1021,22 @@ The end value to reachThe duration of the tween If TRUE the tween will smoothly snap all values to integers + + Tweens a Transform's position BY the given value (as if it was set to relative), + in a way that allows other DOMixedMoveBy tweens to work together on the same target, + instead than fight each other as multiple DOMove would do. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's localPosition BY the given value (as if it was set to relative), + in a way that allows other DOMixedMoveBy tweens to work together on the same target, + instead than fight each other as multiple DOMove would do. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + Tweens a Transform's rotation to the given value. Also stores the transform as the tween's target so it can be used for filtered operations diff --git a/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll b/UnityCompatibilityTests.Unity35/Assets/Demigiant/DOTween/DOTween.dll index b8cc1f5..e705cbc 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 2ccfd32..73bfd43 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/UnityExamples.Unity5/Assets/Basics.cs b/UnityExamples.Unity5/Assets/Basics.cs new file mode 100644 index 0000000..5aa6d41 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Basics.cs @@ -0,0 +1,30 @@ +using UnityEngine; +using System.Collections; +using DG.Tweening; + +public class Basics : MonoBehaviour +{ + public Transform redCube, greenCube, blueCube, purpleCube; + + IEnumerator Start() + { + // Start after one second delay (to ignore Unity hiccups when activating Play mode in Editor) + yield return new WaitForSeconds(1); + + // Let's move the red cube TO 0,4,0 in 2 seconds + redCube.DOMove(new Vector3(0,4,0), 2); + + // Let's move the green cube FROM 0,4,0 in 2 seconds + greenCube.DOMove(new Vector3(0,4,0), 2).From(); + + // Let's move the blue cube BY 0,4,0 in 2 seconds + blueCube.DOMove(new Vector3(0,4,0), 2).SetRelative(); + + // Let's move the purple cube BY 6,0,0 in 2 seconds + // and also change its color to yellow. + // To change its color, we'll have to use its material as a target (instead than its transform). + purpleCube.DOMove(new Vector3(6,0,0), 2).SetRelative(); + // Also, let's set the color tween to loop infinitely forward and backwards + purpleCube.GetComponent().material.DOColor(Color.yellow, 2).SetLoops(-1, LoopType.Yoyo); + } +} \ No newline at end of file diff --git a/UnityExamples.Unity5/Assets/Basics.cs.meta b/UnityExamples.Unity5/Assets/Basics.cs.meta new file mode 100644 index 0000000..9fc25da --- /dev/null +++ b/UnityExamples.Unity5/Assets/Basics.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bfea0ed3e7e7e904b8617d8852314b51 +timeCreated: 1427037180 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Basics.unity b/UnityExamples.Unity5/Assets/Basics.unity new file mode 100644 index 0000000..943d3b4 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Basics.unity differ diff --git a/UnityExamples.Unity5/Assets/Basics.unity.meta b/UnityExamples.Unity5/Assets/Basics.unity.meta new file mode 100644 index 0000000..ec7b74c --- /dev/null +++ b/UnityExamples.Unity5/Assets/Basics.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 95e8d78a19450e94ebcf85d3708dbdfd +timeCreated: 1427037118 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant.meta b/UnityExamples.Unity5/Assets/Demigiant.meta new file mode 100644 index 0000000..42ad9c0 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 3253954388db2d34ca8ff93ad48ea6a9 +folderAsset: yes +timeCreated: 1427036860 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween.meta new file mode 100644 index 0000000..ebff819 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 3798304922268ba46922935704956287 +folderAsset: yes +timeCreated: 1427036860 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.XML b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.XML new file mode 100644 index 0000000..b562aa2 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.XML @@ -0,0 +1,1906 @@ + + + + DOTween + + + + + Update type + + + + Updates every frame during Update calls + + + Updates every frame during LateUpdate calls + + + Updates using FixedUpdate calls + + + + 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 + + + + Used internally + + + + + 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 + + + + Used to separate DOTween class from the MonoBehaviour instance (in order to use static constructors on DOTween). + Contains all instance-based methods + + + + + Used to allow method chaining with DOTween.Init + + + + + 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 + + + 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 + + + + Controls other tweens as a group + + + + + Indicates either a Tweener or a Sequence + + + + Called the first time the tween is set in a playing state, after any eventual delay + + + TimeScale for the tween + + + 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 + + + + Rotation mode used with DORotate methods + + + + + Fastest way that never rotates beyond 360° + + + + + Fastest way that rotates beyond 360° + + + + + Adds the given rotation to the transform using world axis and an advanced precision mode + (like when using transform.Rotate(Space.World)). + In this mode the end value is is always considered relative + + + + + Adds the given rotation to the transform's local axis + (like when rotating an object with the "local" switch enabled in Unity's editor or using transform.Rotate(Space.Self)). + In this mode the end value is is always considered relative + + + + + This plugin generates some GC allocations at startup + + + + + 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 + + + + + Types of log behaviours + + + + 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 + + + + 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 (default or independent) for the tween + The type of update (defalt: 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 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 the string will appear from a random animation of characters + 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) + + + + Methods that extend Tween objects and allow to control or get data from them + + + + Completes the tween + + + Flips the direction of this tween (backwards if it was going forward or viceversa) + + + Forces the tween to initialize its settings immediately + + + Send the tween to the given position in time + Time position to reach + (if higher than the whole tween duration the tween will simply reach its end) + If TRUE will play the tween after reaching the given position, otherwise it will pause it + + + Kills the tween + If TRUE completes the tween before killing it + + + Pauses the tween + + + Plays the tween + + + Sets the tween in a backwards direction and plays it + + + Sets the tween in a forward direction and plays it + + + Restarts the tween from the beginning + If TRUE includes the eventual tween delay, otherwise skips it + + + Rewinds the tween + If TRUE includes the eventual tween delay, otherwise skips it + + + Plays the tween if it was paused, pauses it if it was playing + + + Send a path tween to the given waypoint. + Has no effect if this is not a path tween. + BEWARE, this is a special utility method: + the lookAt direction might be wrong after calling this and might need to be set manually + (because it relies on a smooth path movement and doesn't work well with jumps that encompass dramatic direction changes) + Waypoint index to reach + (if higher than the max waypoint index the tween will simply go to the last one) + If TRUE will play the tween after reaching the given waypoint, otherwise it will pause it + + + + Creates a yield instruction that waits until the tween is killed or complete. + It can be used inside a coroutine as a yield. + Example usage:yield return myTween.WaitForCompletion(); + + + + + Creates a yield instruction that waits until the tween is killed or rewinded. + It can be used inside a coroutine as a yield. + Example usage:yield return myTween.WaitForRewind(); + + + + + Creates a yield instruction that waits until the tween is killed. + It can be used inside a coroutine as a yield. + Example usage:yield return myTween.WaitForKill(); + + + + + Creates a yield instruction that waits until the tween is killed or has gone through the given amount of loops. + It can be used inside a coroutine as a yield. + Example usage:yield return myTween.WaitForElapsedLoops(2); + + Elapsed loops to wait for + + + + Creates a yield instruction that waits until the tween is killed or has reached the given position (loops included, delays excluded). + It can be used inside a coroutine as a yield. + Example usage:yield return myTween.WaitForPosition(2.5f); + + Position (loops included, delays excluded) to wait for + + + + Creates a yield instruction that waits until the tween is killed or started + (meaning when the tween is set in a playing state the first time, after any eventual delay). + It can be used inside a coroutine as a yield. + Example usage:yield return myTween.WaitForStart(); + + + + Returns the total number of loops completed by this tween + + + Returns the eventual delay set for this tween + + + Returns the duration of this tween (delays excluded). + NOTE: when using settings like SpeedBased, the duration will be recalculated when the tween starts + If TRUE returns the full duration loops included, + otherwise the duration of a single loop cycle + + + Returns the elapsed time for this tween (delays exluded) + If TRUE returns the elapsed time since startup loops included, + otherwise the elapsed time within the current loop cycle + + + Returns the elapsed percentage (0 to 1) of this tween (delays exluded) + If TRUE returns the elapsed percentage since startup loops included, + otherwise the elapsed percentage within the current loop cycle + + + Returns FALSE if this tween has been killed. + BEWARE: if this tween is recyclable it might have been spawned again for another use and thus return TRUE anyway. + When working with recyclable tweens you should take care to know when a tween has been killed and manually set your references to NULL. + If you want to be sure your references are set to NULL when a tween is killed you can use the OnKill callback like this: + .OnKill(()=> myTweenReference = null) + + + Returns TRUE if this tween was reversed and is set to go backwards + + + Returns TRUE if the tween is complete + (silently fails and returns FALSE if the tween has been killed) + + + Returns TRUE if this tween is playing + + + + Returns the length of a path (returns -1 if this is not a path tween, if the tween is invalid, or if the path is not yet initialized). + A path is initialized after its tween starts, or immediately if the tween was created with the Path Editor (DOTween Pro feature). + You can force a path to be initialized by calling myTween.ForceInit(). + + + + + Used for tween callbacks + + + + + Used for tween callbacks + + + + + 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 + + + + Tweens an AudioSource's volume to the given value. + Also stores the AudioSource as the tween's target so it can be used for filtered operations + The end value to reach (0 to 1)The duration of the tween + + + Tweens an AudioSource's pitch to the given value. + Also stores the AudioSource as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Shakes a Camera's localPosition along its relative X Y axes with the given values. + Also stores the camera as the tween's target so it can be used for filtered operations + 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. + + + Shakes a Camera's localPosition along its relative X Y axes with the given values. + Also stores the camera as the tween's target so it can be used for filtered operations + 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. + + + Shakes a Camera's localRotation. + Also stores the camera as the tween's target so it can be used for filtered operations + 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. + + + Shakes a Camera's localRotation. + Also stores the camera as the tween's target so it can be used for filtered operations + 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. + + + Tweens a Camera's backgroundColor to the given value. + Also stores the camera as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Light's color to the given value. + Also stores the light as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Light's intensity to the given value. + Also stores the light as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Light's shadowStrength to the given value. + Also stores the light as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a LineRenderer's color to the given value. + Also stores the LineRenderer as the tween's target so it can be used for filtered operations. + Note that this method requires to also insert the start colors for the tween, + since LineRenderers have no way to get them. + The start value to tween from + The end value to reachThe duration of the tween + + + Tweens a Material's color to the given value. + Also stores the material as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Material's named color property to the given value. + Also stores the material as the tween's target so it can be used for filtered operations + The end value to reach + The name of the material property to tween (like _Tint or _SpecColor) + The duration of the tween + + + Tweens a Material's alpha color to the given value + (will have no effect unless your material supports transparency). + Also stores the material as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Material's named float property to the given value. + Also stores the material as the tween's target so it can be used for filtered operations + The end value to reach + The name of the material property to tween + The duration of the tween + + + Tweens a Material's named Vector property to the given value. + Also stores the material as the tween's target so it can be used for filtered operations + The end value to reach + The name of the material property to tween + The duration of the tween + + + Tweens a Rigidbody's position to the given value. + Also stores the rigidbody as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Rigidbody's X position to the given value. + Also stores the rigidbody as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Rigidbody's Y position to the given value. + Also stores the rigidbody as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Rigidbody's Z position to the given value. + Also stores the rigidbody as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Rigidbody's rotation to the given value. + Also stores the rigidbody as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + Rotation mode + + + Tweens a Rigidbody's rotation so that it will look towards the given position. + Also stores the rigidbody as the tween's target so it can be used for filtered operations + The position to look atThe duration of the tween + Eventual axis constraint for the rotation + The vector that defines in which direction up is (default: Vector3.up) + + + Tweens a TrailRenderer's startWidth/endWidth to the given value. + Also stores the TrailRenderer as the tween's target so it can be used for filtered operations + The end startWidth to reachThe end endWidth to reach + The duration of the tween + + + Tweens a TrailRenderer's time to the given value. + Also stores the TrailRenderer as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Transform's position to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's X position to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's Y position to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's Z position to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's localPosition to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's X localPosition to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's Y localPosition to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's Z localPosition to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's rotation to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + Rotation mode + + + Tweens a Transform's localRotation to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + Rotation mode + + + Tweens a Transform's localScale to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Transform's X localScale to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Transform's Y localScale to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Transform's Z localScale to the given value. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Transform's rotation so that it will look towards the given position. + Also stores the transform as the tween's target so it can be used for filtered operations + The position to look atThe duration of the tween + Eventual axis constraint for the rotation + The vector that defines in which direction up is (default: Vector3.up) + + + Punches a Transform's localPosition towards the given direction and then back to the starting one + as if it was connected to the starting position via an elastic. + The direction and strength of the punch (added to the Transform's current position) + 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 punch direction and the opposite direction, + while 0 oscillates only between the punch and the start position + If TRUE the tween will smoothly snap all values to integers + + + Punches a Transform's localScale towards the given size and then back to the starting one + as if it was connected to the starting scale via an elastic. + The punch strength (added to the Transform's current scale) + 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 size when bouncing backwards. + 1 creates a full oscillation between the punch scale and the opposite scale, + while 0 oscillates only between the punch scale and the start scale + + + Punches a Transform's localRotation towards the given size and then back to the starting one + as if it was connected to the starting rotation via an elastic. + The punch strength (added to the Transform's current rotation) + 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 rotation when bouncing backwards. + 1 creates a full oscillation between the punch rotation and the opposite rotation, + while 0 oscillates only between the punch and the start rotation + + + Shakes a Transform's localPosition with the given values. + 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. + If TRUE the tween will smoothly snap all values to integers + + + Shakes a Transform's localPosition with the given values. + 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. + If TRUE the tween will smoothly snap all values to integers + + + Shakes a Transform's localRotation. + 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. + + + Shakes a Transform's localRotation. + 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. + + + Shakes a Transform's localScale. + 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. + + + Shakes a Transform's localScale. + 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. + + + Tweens a Transform's position through the given path waypoints, using the chosen path algorithm. + Also stores the transform as the tween's target so it can be used for filtered operations + The waypoints to go through + The duration of the tween + The type of path: Linear (straight path) or CatmullRom (curved CatmullRom path) + The path mode: 3D, side-scroller 2D, top-down 2D + The resolution of the path (useless in case of Linear paths): higher resolutions make for more detailed curved paths but are more expensive. + Defaults to 10, but a value of 5 is usually enough if you don't have dramatic long curves between waypoints + The color of the path (shown when gizmos are active in the Play panel and the tween is running) + + + Tweens a Transform's localPosition through the given path waypoints, using the chosen path algorithm. + Also stores the transform as the tween's target so it can be used for filtered operations + The waypoint to go through + The duration of the tween + The type of path: Linear (straight path) or CatmullRom (curved CatmullRom path) + The path mode: 3D, side-scroller 2D, top-down 2D + The resolution of the path: higher resolutions make for more detailed curved paths but are more expensive. + Defaults to 10, but a value of 5 is usually enough if you don't have dramatic long curves between waypoints + The color of the path (shown when gizmos are active in the Play panel and the tween is running) + + + + Completes all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens completed + (meaning the tweens that don't have infinite loops and were not already complete) + + + + + Kills all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens killed. + + If TRUE completes the tween before killing it + + + + Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens flipped. + + + + + Sends to the given position all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens involved. + + Time position to reach + (if higher than the whole tween duration the tween will simply reach its end) + If TRUE will play the tween after reaching the given position, otherwise it will pause it + + + + Pauses all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens paused. + + + + + Plays all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens played. + + + + + Plays backwards all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens played. + + + + + Plays forward all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens played. + + + + + Restarts all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens restarted. + + + + + Rewinds all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens rewinded. + + + + + Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens involved. + + + + + Type of path to use with DOPath tweens + + + + Linear, composed of straight segments between each waypoint + + + Curved path (which uses Catmull-Rom curves) + + + + 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 + + + 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 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 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 + + + 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) + + + 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 + + + + + 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 + + + + DOTween's log behaviour. + Default: LogBehaviour.ErrorsOnly + + + + Path plugin works exclusively with Transforms + + + + + 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 + + + + Animates a single value + + + + Changes the start value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new start value + If bigger than 0 applies it as the new tween duration + + + Changes the end value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new end value + If bigger than 0 applies it as the new tween duration + If TRUE the start value will become the current target's value, otherwise it will stay the same + + + Changes the end value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new end value + If TRUE the start value will become the current target's value, otherwise it will stay the same + + + Changes the start and end value of a tween and rewinds it (without pausing it). + Has no effect with tweens that are inside Sequences + The new start value + 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 + + + + + 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. + + + + + 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. + + + + + Struct that stores two colors (used for LineRenderer tweens) + + + + + What axis to constrain in case of Vector tweens + + + + + 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 + + + + diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.XML.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.XML.meta new file mode 100644 index 0000000..671debf --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.XML.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cf3dd5efc3432364095957779d7b010e +timeCreated: 1427036864 +licenseType: Pro +TextScriptImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll new file mode 100644 index 0000000..b8cc1f5 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb new file mode 100644 index 0000000..2ccfd32 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb.meta new file mode 100644 index 0000000..8f33325 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll.mdb.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a822f180e0d1cbd458073187a6ba2f32 +timeCreated: 1427036860 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll.meta new file mode 100644 index 0000000..e53c187 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween.dll.meta @@ -0,0 +1,20 @@ +fileFormatVersion: 2 +guid: 74e3be7c163d29b4eb13e42e3b093ebc +timeCreated: 1427036864 +licenseType: Pro +PluginImporter: + serializedVersion: 1 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 1 + settings: {} + Editor: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll new file mode 100644 index 0000000..def3904 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb new file mode 100644 index 0000000..6ebca49 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb.meta new file mode 100644 index 0000000..b787f6d --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.mdb.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: daa90d7807e5d524ea1efa4d20b2de6f +timeCreated: 1427036874 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.meta new file mode 100644 index 0000000..7729885 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.dll.meta @@ -0,0 +1,20 @@ +fileFormatVersion: 2 +guid: 96124212a8a434c4baaaff8cf6006657 +timeCreated: 1427036875 +licenseType: Pro +PluginImporter: + serializedVersion: 1 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 1 + settings: {} + Editor: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.xml b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.xml new file mode 100644 index 0000000..faa6a44 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.xml @@ -0,0 +1,47 @@ + + + + DOTween43 + + + + + Methods that extend known Unity objects and allow to directly create and control tweens from their instances. + These, as all DOTween43 methods, require Unity 4.3 or later. + + + + Tweens a SpriteRenderer's color to the given value. + Also stores the spriteRenderer as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Material's alpha color to the given value. + Also stores the spriteRenderer as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Rigidbody2D's position to the given value. + Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Rigidbody2D's X position to the given value. + Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Rigidbody2D's Y position to the given value. + Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Rigidbody2D's rotation to the given value. + Also stores the Rigidbody2D as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.xml.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.xml.meta new file mode 100644 index 0000000..8d98b42 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween43.xml.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bee01d69fe6a7fe40b5abe7cf7256796 +timeCreated: 1427036876 +licenseType: Pro +TextScriptImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll new file mode 100644 index 0000000..b66ac09 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb new file mode 100644 index 0000000..39f4c45 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb.meta new file mode 100644 index 0000000..82eb3ab --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.mdb.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0cefc8c9f88432a4691eda55a1455277 +timeCreated: 1427036874 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.meta new file mode 100644 index 0000000..b0e604a --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.dll.meta @@ -0,0 +1,20 @@ +fileFormatVersion: 2 +guid: e533a471b73bc124e9b533b673c8fcde +timeCreated: 1427036876 +licenseType: Pro +PluginImporter: + serializedVersion: 1 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 1 + settings: {} + Editor: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.xml b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.xml new file mode 100644 index 0000000..d630ed1 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.xml @@ -0,0 +1,120 @@ + + + + DOTween46 + + + + + Methods that extend known Unity objects and allow to directly create and control tweens from their instances. + These, as all DOTween46 methods, require Unity 4.6 or later. + + + + Tweens a CanvasGroup's alpha color to the given value. + Also stores the canvasGroup as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens an Graphic's color to the given value. + Also stores the image as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens an Graphic's alpha color to the given value. + Also stores the image as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens an Image's color to the given value. + Also stores the image as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens an Image's alpha color to the given value. + Also stores the image as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens an Image's fillAmount to the given value. + Also stores the image as the tween's target so it can be used for filtered operations + The end value to reach (0 to 1)The duration of the tween + + + Tweens an LayoutElement's flexibleWidth/Height to the given value. + Also stores the LayoutElement as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens an LayoutElement's minWidth/Height to the given value. + Also stores the LayoutElement as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens an LayoutElement's preferredWidth/Height to the given value. + Also stores the LayoutElement as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Outline's effectColor to the given value. + Also stores the Outline as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Outline's effectColor alpha to the given value. + Also stores the Outline as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Outline's effectDistance to the given value. + Also stores the Outline as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a RectTransform's anchoredPosition to the given value. + Also stores the RectTransform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a RectTransform's anchoredPosition3D to the given value. + Also stores the RectTransform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a RectTransform's sizeDelta to the given value. + Also stores the RectTransform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Slider's value to the given value. + Also stores the Slider as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Text's color to the given value. + Also stores the Text as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Text's alpha color to the given value. + Also stores the Text as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + + + Tweens a Text's text to the given value. + Also stores the Text as the tween's target so it can be used for filtered operations + The end string to tween toThe duration of the tween + If TRUE the string will appear from a random animation of characters + 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 (default) to use default ones + + + diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.xml.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.xml.meta new file mode 100644 index 0000000..5599a23 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween46.xml.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 11b4db111ab0d92449c73aa232309358 +timeCreated: 1427036876 +licenseType: Pro +TextScriptImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll new file mode 100644 index 0000000..e97172c Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb new file mode 100644 index 0000000..a1c27de Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb.meta new file mode 100644 index 0000000..4788b25 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.mdb.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 305308bb99989414fa15ec8e339b70b0 +timeCreated: 1427036874 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.meta new file mode 100644 index 0000000..1d8726f --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.dll.meta @@ -0,0 +1,20 @@ +fileFormatVersion: 2 +guid: 244f321fc1b65154cb9485465856c92f +timeCreated: 1427036875 +licenseType: Pro +PluginImporter: + serializedVersion: 1 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 1 + settings: {} + Editor: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.xml b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.xml new file mode 100644 index 0000000..cb874db --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.xml @@ -0,0 +1,103 @@ + + + + DOTween50 + + + + + Methods that extend known Unity objects and allow to directly create and control tweens from their instances. + These, as all DOTween50 methods, require Unity 5.0 or later. + + + + Tweens an AudioMixer's exposed float to the given value. + Also stores the AudioMixer as the tween's target so it can be used for filtered operations. + Note that you need to manually expose a float in an AudioMixerGroup in order to be able to tween it from an AudioMixer. + Name given to the exposed float to set + The end value to reachThe duration of the tween + + + + Completes all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens completed + (meaning the tweens that don't have infinite loops and were not already complete) + + + + + Kills all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens killed. + + If TRUE completes the tween before killing it + + + + Flips the direction (backwards if it was going forward or viceversa) of all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens flipped. + + + + + Sends to the given position all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens involved. + + Time position to reach + (if higher than the whole tween duration the tween will simply reach its end) + If TRUE will play the tween after reaching the given position, otherwise it will pause it + + + + Pauses all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens paused. + + + + + Plays all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens played. + + + + + Plays backwards all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens played. + + + + + Plays forward all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens played. + + + + + Restarts all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens restarted. + + + + + Rewinds all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens rewinded. + + + + + Toggles the paused state (plays if it was paused, pauses if it was playing) of all tweens that have this target as a reference + (meaning tweens that were started from this target, or that had this target added as an Id) + and returns the total number of tweens involved. + + + + diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.xml.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.xml.meta new file mode 100644 index 0000000..506fe3b --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/DOTween50.xml.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 77cae47a46077594587f7b82623ca74c +timeCreated: 1427036876 +licenseType: Pro +TextScriptImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor.meta new file mode 100644 index 0000000..a0e738b --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 3ca6bf15d9b90cd4990be7fb8e6ec9f3 +folderAsset: yes +timeCreated: 1427036860 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML new file mode 100644 index 0000000..09c788c --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML @@ -0,0 +1,60 @@ + + + + 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 + + + diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML.meta new file mode 100644 index 0000000..bddf887 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.XML.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 333ef51bd34e0c0438c797c940a9deca +timeCreated: 1427036864 +licenseType: Pro +TextScriptImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll new file mode 100644 index 0000000..f933566 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb new file mode 100644 index 0000000..272b08d Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb.meta new file mode 100644 index 0000000..f38ef3a --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.mdb.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f929731679d404d4b90d263876b12043 +timeCreated: 1427036860 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.meta new file mode 100644 index 0000000..63a3e06 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/DOTweenEditor.dll.meta @@ -0,0 +1,20 @@ +fileFormatVersion: 2 +guid: 38810da415702fd4aab9977b3df97710 +timeCreated: 1427036861 +licenseType: Pro +PluginImporter: + serializedVersion: 1 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 0 + settings: {} + Editor: + enabled: 1 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs.meta new file mode 100644 index 0000000..86b1abd --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 1dfe61e24e680694980c3eee8118d7ec +folderAsset: yes +timeCreated: 1427036860 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png new file mode 100644 index 0000000..d06fc7c Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png.meta new file mode 100644 index 0000000..86cdcd1 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/DOTweenIcon.png.meta @@ -0,0 +1,55 @@ +fileFormatVersion: 2 +guid: 4ed8201294efcdc418e9a28b8a7c718d +timeCreated: 1427036864 +licenseType: Pro +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 2 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + linearTexture: 0 + correctGamma: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: .25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 0 + cubemapConvolution: 0 + cubemapConvolutionSteps: 8 + cubemapConvolutionExponent: 1.5 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: -1 + mipBias: -1 + wrapMode: -1 + nPOTScale: 1 + lightmap: 0 + rGBM: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: .5, y: .5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaIsTransparency: 0 + textureType: -1 + buildTargetSettings: [] + spriteSheet: + sprites: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer.png b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer.png new file mode 100644 index 0000000..e29d02f Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer.png differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer.png.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer.png.meta new file mode 100644 index 0000000..bc0ae34 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer.png.meta @@ -0,0 +1,55 @@ +fileFormatVersion: 2 +guid: bc517d9bee912274899c614a39b2aada +timeCreated: 1427036867 +licenseType: Pro +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 2 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + linearTexture: 1 + correctGamma: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: .25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 0 + cubemapConvolution: 0 + cubemapConvolutionSteps: 8 + cubemapConvolutionExponent: 1.5 + seamlessCubemap: 0 + textureFormat: -3 + maxTextureSize: 256 + textureSettings: + filterMode: 1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + rGBM: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: .5, y: .5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaIsTransparency: 1 + textureType: 2 + buildTargetSettings: [] + spriteSheet: + sprites: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer_dark.png b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer_dark.png new file mode 100644 index 0000000..e48db5e Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer_dark.png differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer_dark.png.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer_dark.png.meta new file mode 100644 index 0000000..7bc7468 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Footer_dark.png.meta @@ -0,0 +1,55 @@ +fileFormatVersion: 2 +guid: 60fadf5ced9d98e4ba59c9215cc3523a +timeCreated: 1427036864 +licenseType: Pro +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 2 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + linearTexture: 0 + correctGamma: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: .25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 0 + cubemapConvolution: 0 + cubemapConvolutionSteps: 8 + cubemapConvolutionExponent: 1.5 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: -1 + mipBias: -1 + wrapMode: -1 + nPOTScale: 1 + lightmap: 0 + rGBM: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: .5, y: .5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaIsTransparency: 0 + textureType: -1 + buildTargetSettings: [] + spriteSheet: + sprites: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Header.jpg b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Header.jpg new file mode 100644 index 0000000..4d710d7 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Header.jpg differ diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Header.jpg.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Header.jpg.meta new file mode 100644 index 0000000..8ed4807 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/Editor/Imgs/Header.jpg.meta @@ -0,0 +1,55 @@ +fileFormatVersion: 2 +guid: ecb47b61c64c5f046ae933668cbe0d03 +timeCreated: 1427036867 +licenseType: Pro +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 2 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + linearTexture: 1 + correctGamma: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: .25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 0 + cubemapConvolution: 0 + cubemapConvolutionSteps: 8 + cubemapConvolutionExponent: 1.5 + seamlessCubemap: 0 + textureFormat: -3 + maxTextureSize: 512 + textureSettings: + filterMode: 1 + aniso: 1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + rGBM: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: .5, y: .5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaIsTransparency: 1 + textureType: 2 + buildTargetSettings: [] + spriteSheet: + sprites: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/readme.txt b/UnityExamples.Unity5/Assets/Demigiant/DOTween/readme.txt new file mode 100644 index 0000000..3439db1 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/readme.txt @@ -0,0 +1,18 @@ +DOTween and DOTween Pro are copyright (c) 2014 Daniele Giardini - Demigiant + +// GET STARTED ////////////////////////////////////////////// + +- After importing a new DOTween update, select DOTween's Utility Panel from the Tools menu (if it doesn't open automatically) and press the "Setup DOTween..." button to set up additional features based on your Unity version. +- In your code, add "using DG.Tweening" to each class where you want to use DOTween. +- You're ready to tween. Check out the links below for full documentation and license info. + + +// LINKS /////////////////////////////////////////////////////// + +DOTween website (documentation, examples, etc): http://dotween.demigiant.com +DOTween license: http://dotween.demigiant.com/license.php +DOTween repository (Google Code): https://code.google.com/p/dotween/ + +// NOTES ////////////////////////////////////////////////////// + +- DOTween's Utility Panel can be found under "Tools > DOTween Utility Panel" and also contains other useful options, plus a tab to set DOTween's preferences \ No newline at end of file diff --git a/UnityExamples.Unity5/Assets/Demigiant/DOTween/readme.txt.meta b/UnityExamples.Unity5/Assets/Demigiant/DOTween/readme.txt.meta new file mode 100644 index 0000000..06f5c91 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Demigiant/DOTween/readme.txt.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2200fef415aaf7c4fb2c6ed8a09c4986 +timeCreated: 1427036864 +licenseType: Pro +TextScriptImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Example Assets.meta b/UnityExamples.Unity5/Assets/Example Assets.meta new file mode 100644 index 0000000..26af009 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Example Assets.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: bd70e8243d25f1a468c3e5fcfe8c659e +folderAsset: yes +timeCreated: 1427036938 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Example Assets/CircleOutline.png b/UnityExamples.Unity5/Assets/Example Assets/CircleOutline.png new file mode 100644 index 0000000..55960d4 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Example Assets/CircleOutline.png differ diff --git a/UnityExamples.Unity5/Assets/Example Assets/CircleOutline.png.meta b/UnityExamples.Unity5/Assets/Example Assets/CircleOutline.png.meta new file mode 100644 index 0000000..d9d6169 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Example Assets/CircleOutline.png.meta @@ -0,0 +1,55 @@ +fileFormatVersion: 2 +guid: b9549988911ba764fb4276784faa1259 +timeCreated: 1427039728 +licenseType: Pro +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 2 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + linearTexture: 0 + correctGamma: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: .25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 0 + cubemapConvolution: 0 + cubemapConvolutionSteps: 8 + cubemapConvolutionExponent: 1.5 + seamlessCubemap: 0 + textureFormat: -3 + maxTextureSize: 128 + textureSettings: + filterMode: -1 + aniso: 16 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + rGBM: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: .5, y: .5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaIsTransparency: 1 + textureType: 8 + buildTargetSettings: [] + spriteSheet: + sprites: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Example Assets/DOTweenLogo.png b/UnityExamples.Unity5/Assets/Example Assets/DOTweenLogo.png new file mode 100644 index 0000000..7beb5e4 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Example Assets/DOTweenLogo.png differ diff --git a/UnityExamples.Unity5/Assets/Example Assets/DOTweenLogo.png.meta b/UnityExamples.Unity5/Assets/Example Assets/DOTweenLogo.png.meta new file mode 100644 index 0000000..a0959a2 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Example Assets/DOTweenLogo.png.meta @@ -0,0 +1,55 @@ +fileFormatVersion: 2 +guid: b40c611dbe7bfb84f814737f134f45ec +timeCreated: 1427040696 +licenseType: Pro +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 2 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + linearTexture: 0 + correctGamma: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: .25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 0 + cubemapConvolution: 0 + cubemapConvolutionSteps: 8 + cubemapConvolutionExponent: 1.5 + seamlessCubemap: 0 + textureFormat: -3 + maxTextureSize: 512 + textureSettings: + filterMode: -1 + aniso: -1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + rGBM: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: .5, y: .5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaIsTransparency: 1 + textureType: 8 + buildTargetSettings: [] + spriteSheet: + sprites: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Blue.mat b/UnityExamples.Unity5/Assets/Example Assets/MAT Blue.mat new file mode 100644 index 0000000..2c56b4f Binary files /dev/null and b/UnityExamples.Unity5/Assets/Example Assets/MAT Blue.mat differ diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Blue.mat.meta b/UnityExamples.Unity5/Assets/Example Assets/MAT Blue.mat.meta new file mode 100644 index 0000000..a129aa2 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Example Assets/MAT Blue.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 285bc07bb73bcee4a9156eb317ca515d +timeCreated: 1427037214 +licenseType: Pro +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Green.mat b/UnityExamples.Unity5/Assets/Example Assets/MAT Green.mat new file mode 100644 index 0000000..4641b48 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Example Assets/MAT Green.mat differ diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Green.mat.meta b/UnityExamples.Unity5/Assets/Example Assets/MAT Green.mat.meta new file mode 100644 index 0000000..1ecb36c --- /dev/null +++ b/UnityExamples.Unity5/Assets/Example Assets/MAT Green.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c2240a5805567f742b66ec11ae2ff818 +timeCreated: 1427037225 +licenseType: Pro +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Plane.mat b/UnityExamples.Unity5/Assets/Example Assets/MAT Plane.mat new file mode 100644 index 0000000..df37510 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Example Assets/MAT Plane.mat differ diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Plane.mat.meta b/UnityExamples.Unity5/Assets/Example Assets/MAT Plane.mat.meta new file mode 100644 index 0000000..7248cf0 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Example Assets/MAT Plane.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 607083d8fb94e2741b4639e35de3f961 +timeCreated: 1427037352 +licenseType: Pro +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Purple.mat b/UnityExamples.Unity5/Assets/Example Assets/MAT Purple.mat new file mode 100644 index 0000000..e529afe Binary files /dev/null and b/UnityExamples.Unity5/Assets/Example Assets/MAT Purple.mat differ diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Purple.mat.meta b/UnityExamples.Unity5/Assets/Example Assets/MAT Purple.mat.meta new file mode 100644 index 0000000..c8dde64 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Example Assets/MAT Purple.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d40ce6a9d9d9c874393eee703f2d34c8 +timeCreated: 1427038788 +licenseType: Pro +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Red.mat b/UnityExamples.Unity5/Assets/Example Assets/MAT Red.mat new file mode 100644 index 0000000..7c38c28 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Example Assets/MAT Red.mat differ diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Red.mat.meta b/UnityExamples.Unity5/Assets/Example Assets/MAT Red.mat.meta new file mode 100644 index 0000000..6928ba8 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Example Assets/MAT Red.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d12bccfd71adadc4e9286bed6c24aee0 +timeCreated: 1427037290 +licenseType: Pro +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Yellow.mat b/UnityExamples.Unity5/Assets/Example Assets/MAT Yellow.mat new file mode 100644 index 0000000..069b9d2 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Example Assets/MAT Yellow.mat differ diff --git a/UnityExamples.Unity5/Assets/Example Assets/MAT Yellow.mat.meta b/UnityExamples.Unity5/Assets/Example Assets/MAT Yellow.mat.meta new file mode 100644 index 0000000..b863c87 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Example Assets/MAT Yellow.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f76c9adfc2a910d4cae10cab8579c2d4 +timeCreated: 1427039569 +licenseType: Pro +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Example Assets/Prefabs.meta b/UnityExamples.Unity5/Assets/Example Assets/Prefabs.meta new file mode 100644 index 0000000..9e399f9 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Example Assets/Prefabs.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: d58e91a3656ace145900465e44b6cd2e +folderAsset: yes +timeCreated: 1427036987 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Example Assets/Prefabs/Environment.prefab b/UnityExamples.Unity5/Assets/Example Assets/Prefabs/Environment.prefab new file mode 100644 index 0000000..3c42677 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Example Assets/Prefabs/Environment.prefab differ diff --git a/UnityExamples.Unity5/Assets/Example Assets/Prefabs/Environment.prefab.meta b/UnityExamples.Unity5/Assets/Example Assets/Prefabs/Environment.prefab.meta new file mode 100644 index 0000000..fe4449a --- /dev/null +++ b/UnityExamples.Unity5/Assets/Example Assets/Prefabs/Environment.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6b281b2a7fc98834db803fb53f43e380 +timeCreated: 1427037017 +licenseType: Pro +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Resources.meta b/UnityExamples.Unity5/Assets/Resources.meta new file mode 100644 index 0000000..0bd3536 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Resources.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 8f815f034939dad4c8ff0dcf4756296c +folderAsset: yes +timeCreated: 1427036867 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Resources/DOTweenSettings.asset b/UnityExamples.Unity5/Assets/Resources/DOTweenSettings.asset new file mode 100644 index 0000000..8b59c7b Binary files /dev/null and b/UnityExamples.Unity5/Assets/Resources/DOTweenSettings.asset differ diff --git a/UnityExamples.Unity5/Assets/Resources/DOTweenSettings.asset.meta b/UnityExamples.Unity5/Assets/Resources/DOTweenSettings.asset.meta new file mode 100644 index 0000000..7892eb4 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Resources/DOTweenSettings.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 09a8201d23877f94b9cf6f3270d80e82 +timeCreated: 1427036867 +licenseType: Pro +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Sequences.cs b/UnityExamples.Unity5/Assets/Sequences.cs new file mode 100644 index 0000000..d9a4c41 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Sequences.cs @@ -0,0 +1,28 @@ +using UnityEngine; +using System.Collections; +using DG.Tweening; + +public class Sequences : MonoBehaviour +{ + public Transform cube; + public float duration = 4; + + IEnumerator Start() + { + // Start after one second delay (to ignore Unity hiccups when activating Play mode in Editor) + yield return new WaitForSeconds(1); + + // Create a new Sequence. + // We will set it so that the whole duration is 6 + Sequence s = DOTween.Sequence(); + // Add an horizontal relative move tween that will last the whole Sequence's duration + s.Append(cube.DOMoveX(6, duration).SetRelative().SetEase(Ease.InOutQuad)); + // Insert a rotation tween which will last half the duration + // and will loop forward and backward twice + s.Insert(0, cube.DORotate(new Vector3(0, 45, 0), duration / 2).SetEase(Ease.InQuad).SetLoops(2, LoopType.Yoyo)); + // Add a color tween that will start at half the duration and last until the end + s.Insert(duration / 2, cube.GetComponent().material.DOColor(Color.yellow, duration / 2)); + // Set the whole Sequence to loop infinitely forward and backwards + s.SetLoops(-1, LoopType.Yoyo); + } +} diff --git a/UnityExamples.Unity5/Assets/Sequences.cs.meta b/UnityExamples.Unity5/Assets/Sequences.cs.meta new file mode 100644 index 0000000..4480c30 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Sequences.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 93d78ed74e9e35b448bdd97d65d96a2e +timeCreated: 1427042087 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/Sequences.unity b/UnityExamples.Unity5/Assets/Sequences.unity new file mode 100644 index 0000000..e50a296 Binary files /dev/null and b/UnityExamples.Unity5/Assets/Sequences.unity differ diff --git a/UnityExamples.Unity5/Assets/Sequences.unity.meta b/UnityExamples.Unity5/Assets/Sequences.unity.meta new file mode 100644 index 0000000..e6de350 --- /dev/null +++ b/UnityExamples.Unity5/Assets/Sequences.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b0790038b06c9bd42a7f8155d5a1a3ee +timeCreated: 1427042082 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/UGUI.cs b/UnityExamples.Unity5/Assets/UGUI.cs new file mode 100644 index 0000000..e6f19f7 --- /dev/null +++ b/UnityExamples.Unity5/Assets/UGUI.cs @@ -0,0 +1,59 @@ +using UnityEngine; +using UnityEngine.UI; +using System.Collections; +using DG.Tweening; + +public class UGUI : MonoBehaviour +{ + public Image dotweenLogo, circleOutline; + public Text text, relativeText, scrambledText; + public Slider slider; + + void Start() + { + // All tweens are created in a paused state (by chaining to them a final Pause()), + // so that the UI Play button can activate them when pressed. + // Also, the ones that don't loop infinitely have the AutoKill property set to FALSE, + // so they won't be destroyed when complete and can be resued by the RESTART button + + // Animate the fade out of DOTween's logo + dotweenLogo.DOFade(0, 1.5f).SetAutoKill(false).Pause(); + + // Animate the circle outline's color and fillAmount + circleOutline.DOColor(RandomColor(), 1.5f).SetEase(Ease.Linear).Pause(); + circleOutline.DOFillAmount(0, 1.5f).SetEase(Ease.Linear).SetLoops(-1, LoopType.Yoyo) + .OnStepComplete(()=> { + circleOutline.fillClockwise = !circleOutline.fillClockwise; + circleOutline.DOColor(RandomColor(), 1.5f).SetEase(Ease.Linear); + }) + .Pause(); + + // Animate the first text... + text.DOText("This text will replace the existing one", 2).SetEase(Ease.Linear).SetAutoKill(false).Pause(); + // Animate the second (relative) text... + relativeText.DOText(" - This text will be added to the existing one", 2).SetRelative().SetEase(Ease.Linear).SetAutoKill(false).Pause(); + // Animate the third (scrambled) text... + scrambledText.DOText("This text will appear from scrambled chars", 2, true).SetEase(Ease.Linear).SetAutoKill(false).Pause(); + + // Animate the slider + slider.DOValue(1, 1.5f).SetEase(Ease.InOutQuad).SetLoops(-1, LoopType.Yoyo).Pause(); + } + + // Called by PLAY button OnClick event. Starts all tweens + public void StartTweens() + { + DOTween.PlayAll(); + } + + // Called by RESTART button OnClick event. Restarts all tweens + public void RestartTweens() + { + DOTween.RestartAll(); + } + + // Returns a random color + Color RandomColor() + { + return new Color(Random.Range(0f, 1f), Random.Range(0f, 1f), Random.Range(0f, 1f), 1); + } +} \ No newline at end of file diff --git a/UnityExamples.Unity5/Assets/UGUI.cs.meta b/UnityExamples.Unity5/Assets/UGUI.cs.meta new file mode 100644 index 0000000..7eeb71a --- /dev/null +++ b/UnityExamples.Unity5/Assets/UGUI.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 133bc010078065d4badd87c0b66a62c8 +timeCreated: 1427039689 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/Assets/UGUI.unity b/UnityExamples.Unity5/Assets/UGUI.unity new file mode 100644 index 0000000..1a5610e Binary files /dev/null and b/UnityExamples.Unity5/Assets/UGUI.unity differ diff --git a/UnityExamples.Unity5/Assets/UGUI.unity.meta b/UnityExamples.Unity5/Assets/UGUI.unity.meta new file mode 100644 index 0000000..d660939 --- /dev/null +++ b/UnityExamples.Unity5/Assets/UGUI.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f9f17df2e1fb11a4184c4d8a48de91ef +timeCreated: 1427039684 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityExamples.Unity5/ProjectSettings/AudioManager.asset b/UnityExamples.Unity5/ProjectSettings/AudioManager.asset new file mode 100644 index 0000000..813080f Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/AudioManager.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/DynamicsManager.asset b/UnityExamples.Unity5/ProjectSettings/DynamicsManager.asset new file mode 100644 index 0000000..df2de15 Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/DynamicsManager.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/EditorBuildSettings.asset b/UnityExamples.Unity5/ProjectSettings/EditorBuildSettings.asset new file mode 100644 index 0000000..e72d1dd Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/EditorBuildSettings.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/EditorSettings.asset b/UnityExamples.Unity5/ProjectSettings/EditorSettings.asset new file mode 100644 index 0000000..3c1dcbf Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/EditorSettings.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/GraphicsSettings.asset b/UnityExamples.Unity5/ProjectSettings/GraphicsSettings.asset new file mode 100644 index 0000000..d75e792 Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/GraphicsSettings.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/InputManager.asset b/UnityExamples.Unity5/ProjectSettings/InputManager.asset new file mode 100644 index 0000000..ec47668 Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/InputManager.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/NavMeshAreas.asset b/UnityExamples.Unity5/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 0000000..0beaaeb Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/NavMeshAreas.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/NetworkManager.asset b/UnityExamples.Unity5/ProjectSettings/NetworkManager.asset new file mode 100644 index 0000000..7f48d43 Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/NetworkManager.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/Physics2DSettings.asset b/UnityExamples.Unity5/ProjectSettings/Physics2DSettings.asset new file mode 100644 index 0000000..0e4b0dc Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/Physics2DSettings.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/ProjectSettings.asset b/UnityExamples.Unity5/ProjectSettings/ProjectSettings.asset new file mode 100644 index 0000000..3941384 Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/ProjectSettings.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/ProjectVersion.txt b/UnityExamples.Unity5/ProjectSettings/ProjectVersion.txt new file mode 100644 index 0000000..b0ac510 --- /dev/null +++ b/UnityExamples.Unity5/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 5.0.0f4 +m_StandardAssetsVersion: 0 diff --git a/UnityExamples.Unity5/ProjectSettings/QualitySettings.asset b/UnityExamples.Unity5/ProjectSettings/QualitySettings.asset new file mode 100644 index 0000000..b4a36a2 Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/QualitySettings.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/TagManager.asset b/UnityExamples.Unity5/ProjectSettings/TagManager.asset new file mode 100644 index 0000000..abcb24f Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/TagManager.asset differ diff --git a/UnityExamples.Unity5/ProjectSettings/TimeManager.asset b/UnityExamples.Unity5/ProjectSettings/TimeManager.asset new file mode 100644 index 0000000..258fd4e Binary files /dev/null and b/UnityExamples.Unity5/ProjectSettings/TimeManager.asset differ diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML index b562aa2..4e2875b 100644 --- a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML +++ b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.XML @@ -1021,6 +1021,22 @@ The end value to reachThe duration of the tween If TRUE the tween will smoothly snap all values to integers + + Tweens a Transform's position BY the given value (as if it was set to relative), + in a way that allows other DOMixedMoveBy tweens to work together on the same target, + instead than fight each other as multiple DOMove would do. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's localPosition BY the given value (as if it was set to relative), + in a way that allows other DOMixedMoveBy tweens to work together on the same target, + instead than fight each other as multiple DOMove would do. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + Tweens a Transform's rotation to the given value. Also stores the transform as the tween's target so it can be used for filtered operations diff --git a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll index b8cc1f5..e705cbc 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 2ccfd32..73bfd43 100644 Binary files a/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb and b/UnityTests.Unity4/Assets/Demigiant/DOTween/DOTween.dll.mdb differ diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML index b562aa2..4e2875b 100644 --- a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML +++ b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.XML @@ -1021,6 +1021,22 @@ The end value to reachThe duration of the tween If TRUE the tween will smoothly snap all values to integers + + Tweens a Transform's position BY the given value (as if it was set to relative), + in a way that allows other DOMixedMoveBy tweens to work together on the same target, + instead than fight each other as multiple DOMove would do. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's localPosition BY the given value (as if it was set to relative), + in a way that allows other DOMixedMoveBy tweens to work together on the same target, + instead than fight each other as multiple DOMove would do. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + Tweens a Transform's rotation to the given value. Also stores the transform as the tween's target so it can be used for filtered operations diff --git a/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll b/UnityTests.Unity5/Assets/Demigiant/DOTween/DOTween.dll index b8cc1f5..e705cbc 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 2ccfd32..73bfd43 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/Holoville/HODebugFramework/HODebugFramework.dll.meta b/UnityTests.Unity5/Assets/Holoville/HODebugFramework/HODebugFramework.dll.meta index 7563eb3..78c750b 100644 --- a/UnityTests.Unity5/Assets/Holoville/HODebugFramework/HODebugFramework.dll.meta +++ b/UnityTests.Unity5/Assets/Holoville/HODebugFramework/HODebugFramework.dll.meta @@ -1,7 +1,18 @@ fileFormatVersion: 2 guid: 0e219f6858bc6be4899178b7a17cefcc -MonoAssemblyImporter: +PluginImporter: serializedVersion: 1 iconMap: {} executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 1 + settings: {} + Editor: + enabled: 0 + settings: + DefaultValueInitialized: true userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityTests.Unity5/Assets/Holoville/HOTween/Editor/HOTweenV1_Editor.dll.meta b/UnityTests.Unity5/Assets/Holoville/HOTween/Editor/HOTweenV1_Editor.dll.meta index e485605..c1a9b94 100644 --- a/UnityTests.Unity5/Assets/Holoville/HOTween/Editor/HOTweenV1_Editor.dll.meta +++ b/UnityTests.Unity5/Assets/Holoville/HOTween/Editor/HOTweenV1_Editor.dll.meta @@ -1,7 +1,18 @@ fileFormatVersion: 2 guid: 93bb3a583aeaea948a20ab316d0b585a -MonoAssemblyImporter: +PluginImporter: serializedVersion: 1 iconMap: {} executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 0 + settings: {} + Editor: + enabled: 1 + settings: + DefaultValueInitialized: true userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityTests.Unity5/Assets/Holoville/HOTween/HOTween.dll.meta b/UnityTests.Unity5/Assets/Holoville/HOTween/HOTween.dll.meta index 120e495..ff0fc37 100644 --- a/UnityTests.Unity5/Assets/Holoville/HOTween/HOTween.dll.meta +++ b/UnityTests.Unity5/Assets/Holoville/HOTween/HOTween.dll.meta @@ -1,7 +1,18 @@ fileFormatVersion: 2 guid: 219563a788c6c504f8aedb4eae97878e -MonoAssemblyImporter: +PluginImporter: serializedVersion: 1 iconMap: {} executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 1 + settings: {} + Editor: + enabled: 0 + settings: + DefaultValueInitialized: true userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityTests.Unity5/Assets/UnityVS/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll.meta b/UnityTests.Unity5/Assets/UnityVS/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll.meta index b6baca6..2c8f4f6 100644 --- a/UnityTests.Unity5/Assets/UnityVS/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll.meta +++ b/UnityTests.Unity5/Assets/UnityVS/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll.meta @@ -1,2 +1,18 @@ fileFormatVersion: 2 guid: 38d405c119fcc7c4e83d4a478a40ff2f +PluginImporter: + serializedVersion: 1 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 0 + settings: {} + Editor: + enabled: 1 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityTests.Unity5/Assets/UnityVS/Editor/SyntaxTree.VisualStudio.Unity.Messaging.dll.meta b/UnityTests.Unity5/Assets/UnityVS/Editor/SyntaxTree.VisualStudio.Unity.Messaging.dll.meta index 1d07397..db97df2 100644 --- a/UnityTests.Unity5/Assets/UnityVS/Editor/SyntaxTree.VisualStudio.Unity.Messaging.dll.meta +++ b/UnityTests.Unity5/Assets/UnityVS/Editor/SyntaxTree.VisualStudio.Unity.Messaging.dll.meta @@ -1,2 +1,18 @@ fileFormatVersion: 2 guid: 4ad02dc83da735c4e8d945332b9202f6 +PluginImporter: + serializedVersion: 1 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + platformData: + Any: + enabled: 0 + settings: {} + Editor: + enabled: 1 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityTests.Unity5/Assets/_Tests/MixedTweens.cs b/UnityTests.Unity5/Assets/_Tests/MixedTweens.cs new file mode 100644 index 0000000..1ac113a --- /dev/null +++ b/UnityTests.Unity5/Assets/_Tests/MixedTweens.cs @@ -0,0 +1,23 @@ +using UnityEngine; +using System.Collections; +using DG.Tweening; + +public class MixedTweens : BrainBase +{ + public Transform target; + + IEnumerator Start() + { + yield return new WaitForSeconds(0.6f); + + target.DOMixedMoveBy(new Vector3(3, 3, 0), 3).SetAutoKill(false); + target.DOMixedMoveBy(new Vector3(-3, 0, 0), 1.5f).SetLoops(2, LoopType.Yoyo).SetAutoKill(false); + } + + void OnGUI() + { + if (GUILayout.Button("Toggle Pause")) DOTween.TogglePauseAll(); + if (GUILayout.Button("Restart")) DOTween.RestartAll(); + if (GUILayout.Button("Flip")) DOTween.FlipAll(); + } +} \ No newline at end of file diff --git a/UnityTests.Unity5/Assets/_Tests/MixedTweens.cs.meta b/UnityTests.Unity5/Assets/_Tests/MixedTweens.cs.meta new file mode 100644 index 0000000..835d2bd --- /dev/null +++ b/UnityTests.Unity5/Assets/_Tests/MixedTweens.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 035c638358fb498489a103751b3f21fd +timeCreated: 1427110660 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityTests.Unity5/Assets/_Tests/MixedTweens.unity b/UnityTests.Unity5/Assets/_Tests/MixedTweens.unity new file mode 100644 index 0000000..4400f19 Binary files /dev/null and b/UnityTests.Unity5/Assets/_Tests/MixedTweens.unity differ diff --git a/UnityTests.Unity5/Assets/_Tests/MixedTweens.unity.meta b/UnityTests.Unity5/Assets/_Tests/MixedTweens.unity.meta new file mode 100644 index 0000000..3fab303 --- /dev/null +++ b/UnityTests.Unity5/Assets/_Tests/MixedTweens.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9d02f9ef6c119594cafaee890472390e +timeCreated: 1427110652 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityTests.Unity5/Assets/_Tests/Tricks.meta b/UnityTests.Unity5/Assets/_Tests/Tricks.meta new file mode 100644 index 0000000..ab08493 --- /dev/null +++ b/UnityTests.Unity5/Assets/_Tests/Tricks.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 5d0370b595ed1704f9660bb6c6375148 +folderAsset: yes +timeCreated: 1427105591 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.cs b/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.cs new file mode 100644 index 0000000..6e621aa --- /dev/null +++ b/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.cs @@ -0,0 +1,16 @@ +using UnityEngine; +using System.Collections; +using DG.Tweening; + +public class CombineTweens : MonoBehaviour +{ + public Transform target; + + IEnumerator Start() + { + yield return new WaitForSeconds(0.6f); + + target.DOMixedMoveBy(new Vector3(3, 3, 0), 3); + target.DOMixedMoveBy(new Vector3(-3, 0, 0), 1.5f).SetLoops(2, LoopType.Yoyo); + } +} \ No newline at end of file diff --git a/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.cs.meta b/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.cs.meta new file mode 100644 index 0000000..79fc162 --- /dev/null +++ b/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c23748967a6cecb49ae483563ca4e0c4 +timeCreated: 1427105633 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.unity b/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.unity new file mode 100644 index 0000000..b69a886 Binary files /dev/null and b/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.unity differ diff --git a/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.unity.meta b/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.unity.meta new file mode 100644 index 0000000..2a973ed --- /dev/null +++ b/UnityTests.Unity5/Assets/_Tests/Tricks/CombineTweens.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0ba94f580292d4542bfaac85b31e799a +timeCreated: 1427105627 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/_DOTween.Assembly/DOTween/DOTween.cs b/_DOTween.Assembly/DOTween/DOTween.cs index 0067961..fe4d8bc 100644 --- a/_DOTween.Assembly/DOTween/DOTween.cs +++ b/_DOTween.Assembly/DOTween/DOTween.cs @@ -21,7 +21,7 @@ namespace DG.Tweening public class DOTween { /// DOTween's version - public static readonly string Version = "1.0.327"; + public static readonly string Version = "1.0.330"; /////////////////////////////////////////////// // Options //////////////////////////////////// diff --git a/_DOTween.Assembly/DOTween/ShortcutExtensions.cs b/_DOTween.Assembly/DOTween/ShortcutExtensions.cs index e671265..e89a7a9 100644 --- a/_DOTween.Assembly/DOTween/ShortcutExtensions.cs +++ b/_DOTween.Assembly/DOTween/ShortcutExtensions.cs @@ -379,6 +379,40 @@ namespace DG.Tweening .SetOptions(AxisConstraint.Z, snapping).SetTarget(target); } + /// Tweens a Transform's position BY the given value (as if it was set to relative), + /// in a way that allows other DOMixedMoveBy tweens to work together on the same target, + /// instead than fight each other as multiple DOMove would do. + /// Also stores the transform as the tween's target so it can be used for filtered operations + /// The end value to reachThe duration of the tween + /// If TRUE the tween will smoothly snap all values to integers + public static Tweener DOMixedMoveBy(this Transform target, Vector3 byValue, float duration, bool snapping = false) + { + Vector3 to = Vector3.zero; + return DOTween.To(() => to, x => { + Vector3 diff = x - to; + to = x; + target.position += diff; + }, byValue, duration) + .SetOptions(snapping).SetTarget(target); + } + + /// Tweens a Transform's localPosition BY the given value (as if it was set to relative), + /// in a way that allows other DOMixedMoveBy tweens to work together on the same target, + /// instead than fight each other as multiple DOMove would do. + /// Also stores the transform as the tween's target so it can be used for filtered operations + /// The end value to reachThe duration of the tween + /// If TRUE the tween will smoothly snap all values to integers + public static Tweener DOLocalMixedMoveBy(this Transform target, Vector3 byValue, float duration, bool snapping = false) + { + Vector3 to = Vector3.zero; + return DOTween.To(() => to, x => { + Vector3 diff = x - to; + to = x; + target.localPosition += diff; + }, byValue, duration) + .SetOptions(snapping).SetTarget(target); + } + /// Tweens a Transform's rotation to the given value. /// Also stores the transform as the tween's target so it can be used for filtered operations /// The end value to reachThe duration of the tween diff --git a/_DOTween.Assembly/bin/DOTween.XML b/_DOTween.Assembly/bin/DOTween.XML index b562aa2..4e2875b 100644 --- a/_DOTween.Assembly/bin/DOTween.XML +++ b/_DOTween.Assembly/bin/DOTween.XML @@ -1021,6 +1021,22 @@ The end value to reachThe duration of the tween If TRUE the tween will smoothly snap all values to integers + + Tweens a Transform's position BY the given value (as if it was set to relative), + in a way that allows other DOMixedMoveBy tweens to work together on the same target, + instead than fight each other as multiple DOMove would do. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + + + Tweens a Transform's localPosition BY the given value (as if it was set to relative), + in a way that allows other DOMixedMoveBy tweens to work together on the same target, + instead than fight each other as multiple DOMove would do. + Also stores the transform as the tween's target so it can be used for filtered operations + The end value to reachThe duration of the tween + If TRUE the tween will smoothly snap all values to integers + Tweens a Transform's rotation to the given value. Also stores the transform as the tween's target so it can be used for filtered operations diff --git a/_DOTween.Assembly/bin/DOTween.dll b/_DOTween.Assembly/bin/DOTween.dll index b8cc1f5..e705cbc 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 2ccfd32..73bfd43 100644 Binary files a/_DOTween.Assembly/bin/DOTween.dll.mdb and b/_DOTween.Assembly/bin/DOTween.dll.mdb differ