This function creates a section in the debug view last added with dbg_view and shows it in The Debug Overlay.
NOTE If no debug view is active then the section is added to a new debug view named "Default".
dbg_section(name [, open]);
Argument | Type | Description |
---|---|---|
name | String | The name of the new debug section |
open | Boolean | OPTIONAL true if the section should be open when it's created, false if not (default is true) |
dbg_view("CustomDebugView");
dbg_section("Player Variables");
The code above creates a new debug view using dbg_view named "CustomDebugView" and adds a new section "Player Variables" to it using dbg_section.