Click or drag to resize

ResourceSaverSave Method

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

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Error Save(
	string path,
	Resource resource,
	ResourceSaverSaverFlags flags = 
)

Parameters

path
Type: SystemString

[Missing <param name="path"/> documentation for "M:Godot.ResourceSaver.Save(System.String,Godot.Resource,Godot.ResourceSaver.SaverFlags)"]

resource
Type: GodotResource

[Missing <param name="resource"/> documentation for "M:Godot.ResourceSaver.Save(System.String,Godot.Resource,Godot.ResourceSaver.SaverFlags)"]

flags (Optional)
Type: GodotResourceSaverSaverFlags

[Missing <param name="flags"/> documentation for "M:Godot.ResourceSaver.Save(System.String,Godot.Resource,Godot.ResourceSaver.SaverFlags)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.ResourceSaver.Save(System.String,Godot.Resource,Godot.ResourceSaver.SaverFlags)"]

See Also