Table of Contents

Method ReadTextAsync

Namespace
GrindFest.Content
Assembly
GrindFest.dll

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

path string
ct CancellationToken

Returns

Task<string>