
U
Publisher
ultradeviant
GStorage for Godot 4
Tools
Storage KeyValue Fast API Settings UserDefaults Lightweight Configuration
Lightweight key-value storage system for Godot, inspired by UserDefaults in Swift.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
GStorage for Godot 4
š Lightweight key-value storage system for Godot, inspired by UserDefaults
in Swift
š„ Features
ā
Fast read/write operations
ā
Automatic file storage in user://
ā
Easy API with per-container initialization
š Installation
- Download via Godot Asset Library
- Or install manually:
- Clone this repository or download it as a ZIP.
- Move the
addons/gstorage/
folder to your Godot project. - Enable the plugin in
Project Settings -> Plugins
.
š® Usage Example
var storage = GStorage.create("settings")
# Store values
storage.set_value("music_volume", 0.8)
storage.set_value("username", "Player123")
# Read values
var volume = storage.get_value("music_volume", 1.0) # where 1.0 is the default value
var username = storage.get_value("username", "Guest")
# Remove values
storage.remove_value("username")
# Clear values
storage.clear()