The engine includes an internal logging system that allows displaying custom messages in the integrated debug console of the editor or runtime mode.
Log(...args) — Shows informational messages (light blue text).Warn(...args) — Shows warnings (yellow text).ErrorLog(...args) — Shows errors (red text).// Informational message
Log("Player has been instantiated correctly.");
// Warning
Warn("Object speed is too high.");
// Error
ErrorLog("Object texture not found.");
debugEnabled is active.
In production mode, this variable is usually disabled to optimize performance.
You can modify the line limit, colors, or autoscroll behavior inside addDebugMessage().