Edit of asset "Run-time File Saving and Loading Demo" Accepted
Old/Current | New/Edit | |
---|---|---|
Title | Run-time File Saving and Loading Demo | Run-time File Saving and Loading Demo |
Description |
This project showcases how to load and save various file types without going through Godot's resource importing system. This is useful to load/save images, sounds, 3D scenes and ZIP archives at run-time such as user-generated content, without requiring users to generate a PCK file through Godot. Can be loaded and saved at run-time: - Images (JPEG, PNG, WebP) - 3D scenes (glTF 2.0) - ZIP archives - Plain text files* Can be loaded at run-time: - Images (TGA, BMP, SVG**) - Audio (Ogg Vorbis) - Fonts (TTF, OTF, WOFF, WOFF2, PFB, PFM, BMFont) *: Manipulating custom binary formats is possible using the FileAccess and PackedByteArray classes, but this is not shown in this demo. **: It is possible to procedurally generate SVG as text and save it to a file with `.svg` extension using the FileAccess class, but this is not shown in this demo. See the "Saving and Loading (Serialization)" demo for an example of saving/loading game progress. Language: GDScript Renderer: Compatibility |
This project showcases how to load and save various file types without going through Godot's resource importing system. This is useful to load/save images, sounds, 3D scenes and ZIP archives at run-time such as user-generated content, without requiring users to generate a PCK file through Godot. Can be loaded and saved at run-time: - Images (JPEG, PNG, WebP) - 3D scenes (glTF 2.0) - ZIP archives - Plain text files* Can be loaded at run-time: - Images (TGA, BMP, SVG**) - Audio (Ogg Vorbis) - Fonts (TTF, OTF, WOFF, WOFF2, PFB, PFM, BMFont) *: Manipulating custom binary formats is possible using the FileAccess and PackedByteArray classes, but this is not shown in this demo. **: It is possible to procedurally generate SVG as text and save it to a file with `.svg` extension using the FileAccess class, but this is not shown in this demo. See the "Saving and Loading (Serialization)" demo for an example of saving/loading game progress. Language: GDScript Renderer: Compatibility |
Category | Demos | Demos |
License | MIT | MIT |
Repository Provider | Custom | Custom |
Repository Url | https://github.com/godotengine/godot-demo-projects/tree/4.2-31d1c0c/loading/runtime_save_load | https://github.com/godotengine/godot-demo-projects/tree/4.2-31d1c0c/loading/runtime_save_load |
Issues Url | https://github.com/godotengine/godot-demo-projects/issues | https://github.com/godotengine/godot-demo-projects/issues |
Godot version | Godot 4.2 | Godot 4.2 |
Version String | 4.2-31d1c0c | 4.2-31d1c0c |
Download Commit | https://github.com/godotengine/godot-demo-projects/releases/download/4.2-31d1c0c/loading_runtime_save_load.zip | https://github.com/godotengine/godot-demo-projects/releases/download/4.2-31d1c0c/loading_runtime_save_load.zip |
Download Url (Computed) | https://github.com/godotengine/godot-demo-projects/releases/download/4.2-31d1c0c/loading_runtime_save_load.zip | https://github.com/godotengine/godot-demo-projects/releases/download/4.2-31d1c0c/loading_runtime_save_load.zip |
Icon Url |
https://raw.githubusercontent.com/godotengine/godot-demo-projects/4.2-31d1c0c/loading/runtime_save_load/icon.svg
|
https://raw.githubusercontent.com/godotengine/godot-demo-projects/4.2-31d1c0c/loading/runtime_save_load/icon.svg
|
Preview Insert | ||
---|---|---|
Type | image | |
Image/Video URL |
https://raw.githubusercontent.com/godotengine/godot-demo-projects/4.2-31d1c0c/loading/runtime_save_load/screenshots/runtime_save_load.webp
|
|
Thumbnail |
|