Register a callback in the engine onBeforeRender eventThis is called every frame before the main camera renders
The callback to be called
Optional
A function that can be called to unregister the callback
onBeforeRender((ctx : Context) => { // do something} Copy
onBeforeRender((ctx : Context) => { // do something}
Generated using TypeDoc
Register a callback in the engine onBeforeRender event
This is called every frame before the main camera renders