Skip to content

UnityStreamingAssetsFS

Namespace: Shadop.Archmage.Sdk

Implements the IFS interface to load files from Unity StreamingAssets via UnityWebRequest. Paths are resolved relative to Application.streamingAssetsPath.

public class UnityStreamingAssetsFS : IFS

Inheritance ObjectUnityStreamingAssetsFS
Implements IFS

public UnityStreamingAssetsFS()
public Byte[] ReadAllBytes(string path)

path String

Byte[]

ReadAllBytesAsync(String, CancellationToken)

Section titled “ReadAllBytesAsync(String, CancellationToken)”
public Task<Byte[]> ReadAllBytesAsync(string path, CancellationToken cancellationToken)

path String

cancellationToken CancellationToken

Task<Byte[]>

public bool FileExists(string path)

path String

Boolean

public bool DirectoryExists(string path)

path String

Boolean