Why I prefer DoTween over Animator for UI animations in Unity3D
UI animations are a very important part of the development process, it is one of the major things that get noticed by the user very easily and it is one of those things with which the user interacts most.
The problem is that Unity’s animator engine was originally crafted and tuned for character rigs animation. Animators will dirty their elements every frame, even if the value in the animation does not change. Animators have no no-op checks
Nowadays UI animations have become very complex, let it be for games or for apps, there are multiple tweening events happening at simple action. So using an animator can become a bit heavy at times and change of animation states can become an issue for fast UI transition which I face the most. So I decided to switch to Dotween.
DOTween is a fast, efficient, fully type-safe object-oriented animation engine for Unity, optimized for C# users, free and open-source, with tons of advanced features.
It helps us to achieve all the possible tweening effect for UI just by using C# code. And It is also light in terms of Memory Usage.