Method UnpackAsync
UnpackAsync(String, String)
Unpacks a mobile scene package file (.mspk) to an output directory.
Declaration
public static Task UnpackAsync(string mobileScenePackageFilePath, string outputDirectory)
Parameters
Type | Name | Description |
---|---|---|
System. |
mobileScenePackageFilePath | the path to a mobile scene package file (.mspk) |
System. |
outputDirectory | a path to a directory to write the mobile scene package contents. |
Returns
Type | Description |
---|---|
System. |
A System. |
Remarks
If the last level of the outputDirectory
is not present, it will be created as part of the unpack task.
The unpack task writes the full content of the mobile scene package to the output directory. Care should
be taken on devices with limited storage space, especially if the package is very large. After unpacking,
you can remove the original .mspk file from the device.
Note that unpacking will fail if the package has expired and was authored as
Prevent
Exceptions
Type | Condition |
---|---|
Expired |
Package was authored to prevent expired access. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.5 - 200.6 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.6 |
UnpackAsync(String, String, CancellationToken)
Unpacks a mobile scene package file (.mspk) to an output directory.
Declaration
public static Task UnpackAsync(string mobileScenePackageFilePath, string outputDirectory, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System. |
mobileScenePackageFilePath | the path to a mobile scene package file (.mspk) |
System. |
outputDirectory | a path to a directory to write the mobile scene package contents. |
System. |
cancellationToken | A System. |
Returns
Type | Description |
---|---|
System. |
A System. |
Remarks
If the last level of the outputDirectory
is not present, it will be created as part of the unpack task.
The unpack task writes the full content of the mobile scene package to the output directory. Care should
be taken on devices with limited storage space, especially if the package is very large. After unpacking,
you can remove the original .mspk file from the device.
Note that unpacking will fail if the package has expired and was authored as
Prevent
Exceptions
Type | Condition |
---|---|
Expired |
Package was authored to prevent expired access. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.5 - 200.6 |
Xamarin.Android | 100.5 - 100.14 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.6 |