unpack static method

Future<void> unpack({
  1. required Uri mobileScenePackageFileUri,
  2. required Uri outputDirectory,
})

Unpacks a mobile scene package file (.mspk) to an output directory.

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 ExpirationType.preventExpiredAccess.

Parameters:

  • mobileScenePackageFileUri — the path to a mobile scene package file (.mspk)
  • outputDirectory — a path to a directory to write the mobile scene package contents.

Return Value: Future with no return value.