The Utils class provides various utility functions for debugging, logging, encryption, memory management, and configuration handling. It supports both GDScript and C#, allowing seamless integration into Godot projects regardless of the scripting language used.
- Debugging & Logging: Display dynamic log messages with visual effects.
- Encryption: AES encryption in different modes (XOR, ECB, CBC) for secure data storage.
- Memory Monitoring: Track RAM and VRAM usage.
- Configuration Management: Save and load settings in an
.inifile. - Type Handling: Format and colorize different data types for improved readability.
Copy the Utils script into your Godot project's script directory. The library supports both GDScript and C#.
Utils.delayCall(2.0, self, "myFunction")
func myFunction():
print("This runs after 2 seconds!")
Utils.DelayCall(2.0f, this, "MyFunction");
void MyFunction()
{
GD.Print("This runs after 2 seconds!");
}# Save game data
Utils.saveGame({"player_health": 100, "level": 3}, 1, Utils.ENCRYPTIONMODE.CBC)
# Load game data
var data = Utils.loadGame(1, Utils.ENCRYPTIONMODE.CBC)
print(data)// Save game data
Godot.Collections.Dictionary<string, Godot.Variant> gameData = new Godot.Collections.Dictionary<string, Godot.Variant>
{
{"player_health", 100},
{"level", 3}
};
Utils.SaveGame(gameData, 1, Utils.ENCRYPTIONMODE.CBC);
// Load game data
Godot.Collections.Dictionary<string, Godot.Variant> newData = Utils.LoadGame(1, Utils.ENCRYPTIONMODE.CBC);
GD.Print(newData);var settings = {
"Audio": {
"music": 5,
"voice": 7,
"sfx": 4
}
}
Utils.saveConfig(settings)Godot.Collections.Dictionary<string, Godot.Collections.Dictionary<string, Godot.Variant>> settings =
new Godot.Collections.Dictionary<string, Godot.Collections.Dictionary<string, Godot.Variant>>
{
{"Audio", new Godot.Collections.Dictionary<string, Godot.Variant>
{
{"music", 5},
{"voice", 7},
{"sfx", 4}
}
}
};
Utils.SaveConfig(settings);Utils.loadConfig(settings)Utils.LoadConfig(settings);The Utils class provides functions to format values for debugging:
Pulsates between white and colour of choice
Logs with a gradient of your two colour choices
Highlight a log entry for easy viewing
Easy to read with colour coded data types
Logged data types instead of mysterious numbers you have to lookup
Keep track of the alotted memory at any point without changing tabs or remembering to enable graphs

Easy to grab FPS
This project is licensed under the MIT License.
Contributions are welcome! Feel free to submit pull requests or report issues.








