Animate your UI elements in Unity by code! We'll use tweening for this, but won't use any outside asset and instead write our own. We write a script that handles the animation of an element's position and alpha and go a step further by visualizing the locations it will end up in with Gizmos. That takes a lot off guesswork out of finding the correct distances and placements when creating your UI.
You will learn:
- How to move a UI element by code (tweening)
- How to animate position and alpha by code
- How to work with Gizmos (Visualisation Helpers)
- How to use the [Button] and [ShowIf] attribute of Odin Inspector in case you have the asset (it is not needed for this tutorial, but I enjoy working with it and maybe you do, too)
- How to use [ContextMenu] to create quick access to methods in the inspector for testing
Animate your UI elements in Unity by code! We'll use tweening for this, but won't use any outside asset and instead write our own. We write a script that handles the animation of an element's position and alpha and go a step further by visualizing the locations it will end up in with Gizmos. That takes a lot off guesswork out of finding the corr...
(tagging you so you won't miss it, it has been a few days since your comment :) @restive heath )