hi…
can i use Mathf.Lerp to animate a translation for a gui element?.. let´s say a GUI.DrawTexture
thanks.
hi…
can i use Mathf.Lerp to animate a translation for a gui element?.. let´s say a GUI.DrawTexture
thanks.
Yes. Mathf.Lerp returns a “position” along a line given a starting point, a terminal point and a percentage. if you know your starting point and your terminal point, then just decide how to supply a percentage from 0 to 1. The most common way is with the passing of time.
excelent thanks