Method SaveToFileAsync
SaveToFileAsync(string, string, Action<bool>, int)
Saves text to a file asynchronously as a coroutine.
Declaration
public static IEnumerator SaveToFileAsync(string serializedData, string filePath, Action<bool> onComplete = null, int bytesPerStep = 1048576)
Parameters
| Type | Name | Description |
|---|---|---|
| string | serializedData | Text to write. |
| string | filePath | Path to the file to write. |
| Action<bool> | onComplete | Callback invoked with success state. |
| int | bytesPerStep | Maximum characters written per frame. |
Returns
| Type | Description |
|---|---|
| IEnumerator | An enumerator for coroutine execution. |