For the complete documentation index, see llms.txt. This page is also available as Markdown.

hudManager.onRender

onRender(onRender): void

Register a callback that runs on render.

Parameters

onRender

Function

Function that will render this HUD element. Receives (x, y, scale) as arguments.

Returns

void

Example

hudManager.onRender((x, y, scale) => {
 //draw something here 
 });

Last updated