MountAsync(ContentNamespace, string, string)
Loads all files in an archive to a mount point.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: Unity.IO.Archive
- Assembly: UnityEngine.CoreModule
public static ArchiveHandle MountAsync(ContentNamespace namespaceId, string filePath, string prefix)
Parameters
ContentNamespace identifier.
Path of the archive on disk.
Mount point identifier. Set to an empty string if no prefix should be used.
Returns
Type | Description |
|---|---|
| ArchiveHandle | Returns an operation handle that references the archive. |
Remarks
The mounted files can only be accessed through APIs that use Unity's virtual file system such as AsyncReadManager. They cannot be accessed through the regular C# APIs such as System.IO.