Hey, guys! I have a question with regards to animating UI in Unity.
I’ve found tutorials online recommending that it was better to animate UI in code. Rather than using the Animation System that comes with Unity, they suggested to not animate UI with that method so as not to cause performance problems since it updates the layout every single frame (even when idle). With that, the tutorials mentioned using tweening libraries such as DoTween, LeanTween, etc.
These tutorials were from 2-3 years ago. One commenter also referenced Unity 2019.3 patch notes that stated, “UI: Fixed performance issues with Animation by not dirtying the Layout if an Animation updates items.”
I would like to know your opinions on this. Based on your industry experience in shipping games and taking into account game performance and industry standard, what is the best way to animate UI?
Would you guys recommend using Tweening libraries? And if so, which libraries would be best to use? Are they safe to use and do they not cause dependency issues? Or since Unity had a fix for UI in the mentioned patch notes, would animating UI with the Animation System be good enough already?
Thank you in advance to anyone who shares their insights on this!