(o)
| 275 | } |
| 276 | |
| 277 | function renderObject(o) |
| 278 | { |
| 279 | if (!o.visible) return; |
| 280 | |
| 281 | // render object and children |
| 282 | updateTransforms(o); |
| 283 | o.render(); |
| 284 | for (const c of o.children) |
| 285 | renderObject(c); |
| 286 | } |
| 287 | uiSystem.uiObjects.forEach(o=> o.parent || renderObject(o)); |
| 288 | |
| 289 | if (uiDebug > 0) |