This function creates a custom debug view and shows it in The Debug Overlay.
A debug view is a custom window in this overlay that contains sections that you can add controls to. The controls can change the value of the variable they reference.
References to variables can be created using ref_create.
dbg_view(name, visible[, x, y, width, height]);
Argument | Type | Description |
---|---|---|
name | String | The name of the debug view |
visible | Boolean | Whether the debug view should be visible when the debug overlay is opened |
x | Real | OPTIONAL The x position of the debug view, the default -1 indicates it can be placed anywhere |
y | Real | OPTIONAL The y position of the debug view, the default -1 indicates it can be placed anywhere |
width | Real | OPTIONAL The width of the debug view (default is 500) |
height | Real | OPTIONAL The height of the debug view (default is 400) |
dbg_view("CustomDebugView", true);
The above code creates a new debug view named "CustomDebugView" and brings up The Debug Overlay with the debug view visible.