Method EnsureMounted
EnsureMounted(string)
Mounts the Content Directory at the given load path if it is not already mounted, and returns its handle. The directory remains mounted until UnmountAll() is called.
Declaration
public static ContentDirectoryHandle EnsureMounted(string rawLoadPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rawLoadPath | The symbolic load path stored in the catalog entry data. |
Returns
| Type | Description |
|---|---|
| ContentDirectoryHandle | A valid handle to the mounted Content Directory. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when the load path is null or empty. |
| Exception | Thrown when the Content Directory fails to mount. |