Click or drag to resize

ResourceFormatSaverSave Method

Saves the given resource object to a file at the target path. flags is a bitmask composed with ResourceSaverSaverFlags constants.

Returns on success, or an Error constant in case of failure.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public virtual int Save(
	string path,
	Resource resource,
	int flags
)

Parameters

path
Type: SystemString

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

resource
Type: GodotResource

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

flags
Type: SystemInt32

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

Return Value

Type: Int32

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

See Also