OnUpdate
This event is triggered every frame.
Implicit arguments
Object@ self
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 self.rotation = self.rotation + rad(90) * elapsed; }