Skip to content

UnityResourcesFS

Namespace: Shadop.Archmage.Sdk

Implements the IFS interface to load files via Unity Resources. Paths are resolved relative to any Resources folder; file extensions are stripped automatically.

public class UnityResourcesFS : IFS

Inheritance ObjectUnityResourcesFS
Implements IFS

public UnityResourcesFS()
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