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 : IFSInheritance Object → UnityStreamingAssetsFS
Implements IFS
Constructors
Section titled “Constructors”UnityStreamingAssetsFS()
Section titled “UnityStreamingAssetsFS()”public UnityStreamingAssetsFS()Methods
Section titled “Methods”ReadAllBytes(String)
Section titled “ReadAllBytes(String)”public Byte[] ReadAllBytes(string path)Parameters
Section titled “Parameters”path String
Returns
Section titled “Returns”ReadAllBytesAsync(String, CancellationToken)
Section titled “ReadAllBytesAsync(String, CancellationToken)”public Task<Byte[]> ReadAllBytesAsync(string path, CancellationToken cancellationToken)Parameters
Section titled “Parameters”path String
cancellationToken CancellationToken
Returns
Section titled “Returns”FileExists(String)
Section titled “FileExists(String)”public bool FileExists(string path)Parameters
Section titled “Parameters”path String
Returns
Section titled “Returns”DirectoryExists(String)
Section titled “DirectoryExists(String)”public bool DirectoryExists(string path)Parameters
Section titled “Parameters”path String