Click or drag to resize

ResourceManagerSaveAsync Method (ResourceFolder, String, Object)

Save the contents of an object asynchronously to a file.

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static UniTask<bool> SaveAsync(
	ResourceFolder folder,
	string file,
	Object contents
)
Request Example View Source

Parameters

folder
Type: KitResourceFolder
The folder where the file should exist.
file
Type: SystemString
The path and file-name relative to the folder.
contents
Type: SystemObject
The object to save.

Return Value

Type: UniTaskBoolean
Whether the file was successfully saved.
Remarks
A parser is chosen based on the type of the object to serialize it.
See Also