OnUpdate
This event is called every frame.
Parameters
Parameter | Description | Type |
self | Handle to the associated object | Object@ |
elapsed | Elapsed time (in seconds) since last update. | float |
Example
event Rotate.OnUpdate { // Rotate object 90 degrees every second self.rotation += rad(90) * elapsed; }