Quickly enable or disable debug draw calls (SOLVED)

#1

Is there any build setting or shortcut to toggle all debug (text and line draw) calls to the @render socket when:

a) building (ctrl+b) from the editor?
b) bundling a release application?

A code-level option is potentially using some global property and wrapping all debug calls, but am wondering if an engine-level knob already exists for this.

0 Likes

#2

There’s the is_debug flag in the engine info table:

You could modify your render script and get this value and not call the render.draw_debug3d() function if it is false

0 Likes

#3

Thanks, @britzl!

0 Likes