Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MountAsync(ContentNamespace, string, string)

Loads all files in an archive to a mount point.
Read time 1 minuteLast updated 9 days ago

Definition

public static ArchiveHandle MountAsync(ContentNamespace namespaceId, string filePath, string prefix)

Parameters

namespaceId

ContentNamespace identifier.

filePath

Path of the archive on disk.

prefix

Mount point identifier. Set to an empty string if no prefix should be used.

Returns

Type

Description

ArchiveHandleReturns 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.