on Before Draw
Override this function to be notified when the ui element is about to be drawn
In this function you should update your UI element for the coming draw and define its transformations
Parameters
timestamp Ms
the timestamp on the frame in milliseconds