Method ReadTextAsync
ReadTextAsync(string, CancellationToken)
Reads a text file, transparently using UnityWebRequest on platforms where StreamingAssets is packed. Returns null when the file does not exist.
public static Task<string> ReadTextAsync(string path, CancellationToken ct = default)
Parameters
pathstringctCancellationToken