OnUpdate
This event is triggered every frame.
Implicit arguments
Object@ sender
Handle to the associated object.
float elapsed
Elapsed time (in seconds) since the last update.
Sample
event Spin.OnUpdate { // Rotate object 90 degrees every second sender.rotation = sender.rotation + rad(90) * elapsed; }