UwpPlayerBuildTools.BuildPlayer Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
BuildPlayer(UwpBuildInfo, CancellationToken) |
Build the UWP Player. |
BuildPlayer(String, Boolean, CancellationToken) |
Do a build configured for UWP Applications to the specified path, returns the error from BuildPlayer(UwpBuildInfo, CancellationToken) |
Build the UWP Player.
public static System.Threading.Tasks.Task<bool> BuildPlayer (Microsoft.MixedReality.Toolkit.Build.Editor.UwpBuildInfo buildInfo, System.Threading.CancellationToken cancellationToken = default);
static member BuildPlayer : Microsoft.MixedReality.Toolkit.Build.Editor.UwpBuildInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Shared Function BuildPlayer (buildInfo As UwpBuildInfo, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)
Parameters
- buildInfo
- UwpBuildInfo
- cancellationToken
- CancellationToken
Returns
Applies to
MRTK2 Unity 2018 2.7.0 ja muud versioonid
Toode | Versioonid |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
Do a build configured for UWP Applications to the specified path, returns the error from BuildPlayer(UwpBuildInfo, CancellationToken)
public static System.Threading.Tasks.Task<bool> BuildPlayer (string buildDirectory, bool showDialog = true, System.Threading.CancellationToken cancellationToken = default);
static member BuildPlayer : string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Shared Function BuildPlayer (buildDirectory As String, Optional showDialog As Boolean = true, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)
Parameters
- buildDirectory
- String
- showDialog
- Boolean
Should the user be prompted to build the appx as well?
- cancellationToken
- CancellationToken
Returns
True, if build was successful.
Applies to
MRTK2 Unity 2018 2.7.0 ja muud versioonid
Toode | Versioonid |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |