Method OpenAsync
OpenAsync(String)
Opens a new instance of the MobileScenePackage class.
Declaration
public static async Task<MobileScenePackage> OpenAsync(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path | A path to a scene package. Can be a path to archived *.mspk file or the folder with unpacked package. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<MobileScenePackage> | The task object representing the asynchronous open operation. The value of the task result is a MobileScenePackage object. |
Exceptions
| Type | Condition |
|---|---|
| ExpiredException | Package was authored to prevent expired access. |
| UnpackRequiredException | Package contains data that requires unpack before opening. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.5 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.5 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.5 - 100.15 |
| Xamarin.iOS | 100.5 - 100.15 |
| UWP | 100.5 - 100.15 |
Relevant samples
Open mobile scene package: Opens and displays a scene from a Mobile Scene Package (.mspk).