ResourceSaverSingleton

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).

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
SaverFlags
enum SaverFlags

Functions

getRecognizedExtensions
PoolStringArray getRecognizedExtensions(Resource type)

Returns the list of extensions available for saving a resource of a given type.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(ResourceSaverSingleton other)
opEquals
bool opEquals(typeof(null) n)
save
GodotError save(String path, Resource resource, long flags)

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 constant OK on success.

toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
ResourceSaverSingleton _new()

Construct a new instance of ResourceSaverSingleton. Note: use memnew!ResourceSaverSingleton instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta