What is Unity DOTween? How to Use It?
What is DOTween?
According to the article published on their official website
A free and open-source, object-oriented animation engine for Unity users, developed in C#, optimized, with tons of advanced features, fast, efficient, completely safe.
So, to summarize briefly, we can say that DOTween is an open-source and free animation class - library developed for Unity.
What is DOTween Good For?
With DOTween, we can create animations, effects, and many more things on Unity.
Although I mostly use it for UI design in my projects, depending on the game or project, I even occasionally use it in game mechanics. In fact, there was even a time I wrote almost an entire game with DOTween, and you can check out this link to see the project where I used DOTween for both mechanics and UI effects/animations.
So, as you understand, DOTween will make things easier for you and can be used in any area depending on your intended purpose. (Mainly for game animations and effects.)
DOTween Installation
You can use the DOTween plugin by downloading and importing it into your project either from its official website or from the Unity Assets Store.
DOTween - Unity Assets Store Page
Downloading from the Official Website
Adding via Assets Store
Unity Installation
In the selection section that appears, choose whichever you want to use in your project and click the "Apply" button. If you haven't encountered any problems, it means DOTween has been successfully added to your project.
Using DOTween
object.transform.DOMove(target position (Vector3), how long it will take (float));
string text;void Start(){DOTween.To( () => visibleText, ( str ) => visibleText = str, "Hello World!", 5f );}
DOTween Popular Functions
DOMove(Vector3 to, float duration, bool snapping)DORotate(Vector3 to, float duration, RotateMode mode)
DOFillAmount(float to, float duration)










Yorum Gönder