hudManager.onWidth

onWidth(onWidth): void

Register a callback that returns the width of this HUD element.

Parameters

onWidth

Function

Function returning the width in pixels.

Returns

void

Example

hudManager.onWidth(() => { return 100; });

Last updated