A tweening library for Unity-3D.
Questions tagged [dotween]
46 questions
7
votes
3 answers
How to kill current running DoTween sequence in Unity3d?
DOTween.Kill api return number of actual tweens killed. but use this api can't kill transform's sequence tweens.
DOTween.Kill (this); or DOTween.Kill (transform); or DOTween.Rewind api all can't kill it.

zszen
- 1,428
- 1
- 14
- 18
5
votes
2 answers
How to change the endValueString for tween animations at runtime?
I am using DOTween pro asset from the Unity store along with the textmeshpro. Attached is a screenshot showing my setup:
There are few collectibles in my scene; I want to be able to run the animation with a different text each time when an item is…

Vipin Verma
- 5,330
- 11
- 50
- 92
5
votes
1 answer
Unity dotween delay before the next append not working
I have lists of data and I am trying to tween them by sequence. If I put a delay for each of the tween it will not work. What I try to achieve is inserting the delay before the next sequence.
private IEnumerator _CameraTransition()
{
var…

Tengku Fathullah
- 1,279
- 1
- 18
- 43
4
votes
3 answers
DoTween DoPath's speed between waypoints
I have a question about DoPath's speeds between waypoints. I want constant speed from start to end but i couldn't achieve that. But speed changing between waypoints.
I couln't find solution for my problem.
Vector3 firstPoint = from+new…

ilyas kose
- 85
- 1
- 1
- 5
4
votes
2 answers
How do you animate Unity Time.timeScale using an easing function with DOTween?
I'm trying to animate Time.timescale using an easing function with DOTween.
Tweening the value itself seems to work:
DG.Tweening.DOTween.To(value => Time.timeScale = value, 1, 0, 0.4f);
But all the SetX() methods mentioned in the documentation are…

Patrick Klug
- 14,056
- 13
- 71
- 118
3
votes
1 answer
DoTween repeatType.yoyo not working inside Sequence
I am using DoTween and have a Sequence to scale a button from 0 to 1 and then pulse the scale from 1 to 1.25 looped.
My problem is that the loop inside the Sequence does not work. It will go to scale 1 and then to 1.25 but stop there.
If I just run…

Keith Power
- 13,891
- 22
- 66
- 135
3
votes
0 answers
Unity: Unable to clear the TMPro text animated using DoTween
I have a TMPro text object in Unity as shown below:
During the game level, I add texts which to this object which are animated using the DOText from DOTween, e.g. pickUpTextObj.DOText(pickUptext, 2f, true).SetRelative(true);
Once the levels is…

Vipin Verma
- 5,330
- 11
- 50
- 92
3
votes
2 answers
Changing the length of a line renderer using DOTween
I am trying to change the length of my line renderer over time using DOTween.
LineRenderer myLineRenderer = GetComponent();
myLineRenderer.SetPosition(1, new Vector3(x, 0, 0));
This code snippet changes the position of myLineRenderer…

Ogen
- 6,499
- 7
- 58
- 124
2
votes
1 answer
Unity DOTween UI scale yoyo effect
I'm having a problem in creating a yoyo scaling effect with DOTween. I have tried using DoScale, DOScaleShake and DOPunchScale. None seem to work. The rotation that I made works just fine, but I need it to scale as well and that is something I…

Ivan Jakubi
- 23
- 1
- 1
- 4
2
votes
2 answers
How to update Tweener with parameters in Unity3D?
I'd like to move up and down a certain part of a 2D-enemy-spaceship via DoTween's DOMoveY-shortcut. So far so good - it almost works... but when I try to change the value of the transitionTarget during gameplay the animation doesn't change…

drpelz
- 811
- 11
- 43
1
vote
1 answer
With DoTween Unity, is there a way to get a callback triggered when a tweening is 50% complete?
I'm using Unity3D and DoTweeen free version to make some simple animations.
I have been using OnComplete callback a lot, but I'm wondering how I can get a callback that is triggered when half of the animation is completed?
I've checked DoTween…

solidcomer
- 419
- 6
- 18
1
vote
1 answer
Can we remove the smoothing translate with DoMove?
i got a problem when i want to use DoMove function with DOTween it move to the given point but slow at the end and i want to remove if is it possible.

user19915457
- 13
- 2
1
vote
2 answers
DoTween. how to call a function when Tween has finished?
I couldn't find anything in their documentation but I'm really stuck with how to call a function, once DoTween has finished the tween. :/ Does anyone know?
I tried this but I get an error onComplete does not take an…

Raoul L'artiste
- 160
- 1
- 8
1
vote
2 answers
How to use dotween to ease in out a float?
The goal to tween the "Forward" value.
This is example from the dotween exmaples.
Instead moving the cube i want to change the "Forward" value between 0 and 1.
using UnityEngine;
using System.Collections;
using DG.Tweening;
public class Sequences :…

Sharo SA
- 131
- 1
- 7
1
vote
1 answer
pinch zoom not moving to the correct location
I'm trying to implement pinch zoom, the zoom is working but it always zooming to the centre of the RectTransform, I tried to calculate the centre between the fingers and move to that point with DOAnchorPos but it takes me out of the…

ronara
- 336
- 11
- 26