Printing

gdext.api.Gd.Printing
object Printing

Routes log/diagnostic output into Godot's own Output and error consoles.

  • print uses the engine print utility — text lands in the editor Output panel / stdout, like GDScript's print().
  • printError / printWarning use the GDExtension print_error / print_warning calls (error console, with source tag).

Safe to call before the interface is loaded (Godot.interface): they fall back to stdout/stderr so early-init messages are never lost.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Printing.type

Members list

Value members

Concrete methods

def printError(msg: String): Unit

Report an error to Godot's error console.

Report an error to Godot's error console.

Attributes

def printWarning(msg: String): Unit

Report a warning to Godot's error console.

Report a warning to Godot's error console.

Attributes