🧠 Log System and Debug Console

The engine includes an internal logging system that allows displaying custom messages in the integrated debug console of the editor or runtime mode.

🧩 Main Functions

📘 Basic Usage

// Informational message
Log("Player has been instantiated correctly.");

// Warning
Warn("Object speed is too high.");

// Error
ErrorLog("Object texture not found.");
💡 The log system works when debugEnabled is active. In production mode, this variable is usually disabled to optimize performance.

📊 Customization

You can modify the line limit, colors, or autoscroll behavior inside addDebugMessage().