UIElement:update
Advanced
Runs frame-based logic.
This is called once for every element, within update_tree.
Usage
ui_element:update(delta_time)
Arguments
| Name | Type | Description |
|---|---|---|
delta_time | number | Delta time in seconds. |
Examples
This example illustrates how Widget elements update their scripts:
Widget.update = function(self, dt)
Widget.super.update(self, dt);
self._script:update(dt);
end