Skip to content

DebugOverlay ​

Require path: require "ProjectMotionUI/Core/DebugOverlay"


Methods & Functions ​

PMUI.Debug.Toggle() ​

Toggles the debug overlay state.

Returns: boolean enabled The updated debug state.

PMUI.Debug.SetEnabled(state) ​

Sets the debug overlay state.

ParameterTypeDescription
statebooleanWhether debug rendering should be enabled.

PMUI.Debug.DrawElementOverlay(el) ​

Draws a debug overlay for a UI element. Displays the element's bounds, padding, type, dimensions and hover state.

ParameterTypeDescription
elISUIElementThe UI element to draw the overlay for.