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 : IFSInheritance Object → UnityResourcesFS
Implements IFS
Constructors
Section titled “Constructors”UnityResourcesFS()
Section titled “UnityResourcesFS()”public UnityResourcesFS()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