API ReferenceGE Extensionsflowgraphnodesdebug
Debug Text
- **Name:** `Debug Text`
Overview
- Name:
Debug Text - Category:
repeat_instant - File:
lua/ge/extensions/flowgraph/nodes/debug/debugText.lua - Pattern: Class-based (
C = {}, returns_flowgraph_createNode(C))
Description
Draws debug text at a 3D world position with customizable text and background colors. Renders every frame while active.
Pin Schema
Input Pins
| Pin | Type | Default | Description |
|---|---|---|---|
pos | vec3 | - | World position for the text |
text | any | - | Text content to display (converted via tostring) |
colorText | color (hidden, hardcoded) | {1, 1, 1, 1} | Text color (default white) |
colorBG | color (hidden, hardcoded) | {0, 0, 0, 0.75} | Background color (default semi-transparent black) |
Behavior
work()buildsColorFfor text andColorIfor background (scaled to 0–255). CallsdebugDrawer:drawTextAdvanced(pos, text, textColor, true, false, bgColor, false, false).- Text value is converted to string via
tostring().
Key APIs Used
debugDrawer:drawTextAdvanced(pos, String, colorF, bool, bool, colorI, bool, bool)
Tags
#flowgraph #node #ge #debug #draw #text
Additional Exports
init()
-
name-string- (see source) -
icon-any- (see source) -
description-string- (see source) -
category-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- AI Debug Display - Related reference
- Camera Mouse Raycast - Related reference
- Comment - Related reference
- FlowGraph Guide - Guide