Method SaveToFileAndDispose
SaveToFileAndDispose(string, CancellationToken)
Exports the collected scenes/content as glTF, writes it to a file and disposes this object. After the export this instance cannot be re-used!
Declaration
public Task<bool> SaveToFileAndDispose(string path, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | path | glTF destination file path |
CancellationToken | cancellationToken | Token to submit cancellation requests. The default value is None. |
Returns
Type | Description |
---|---|
Task<bool> | True if the glTF file was created successfully, false otherwise |