Inherits: Object
Singleton for saving Godot-specific resource types.
Singleton for saving Godot-specific resource types to the filesystem.
It uses the many ResourceFormatSaver classes registered in the engine (either built-in or from a plugin) to save engine-specific resource data to text-based (e.g. .tres
or .tscn
) or binary files (e.g. .res
or .scn
).
PoolStringArray | get_recognized_extensions ( Resource type ) |
Error | save ( String path, Resource resource, SaverFlags flags=0 ) |
enum SaverFlags:
__editor
prefix).Returns the list of extensions available for saving a resource of a given type.
Saves a resource to disk to the given path, using a ResourceFormatSaver that recognizes the resource object.
The flags
bitmask can be specified to customize the save behavior.
Returns @GlobalScope.OK on success.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_resourcesaver.html