UwpPlayerBuildTools.BuildPlayer Method

Definition

Overloads

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)

BuildPlayer(UwpBuildInfo, CancellationToken)

Build the UWP Player.

C#
public static System.Threading.Tasks.Task<bool> BuildPlayer (Microsoft.MixedReality.Toolkit.Build.Editor.UwpBuildInfo buildInfo, System.Threading.CancellationToken cancellationToken = default);

Parameters

buildInfo
UwpBuildInfo
cancellationToken
CancellationToken

Returns

Applies to

MRTK2 Unity 2018 2.7.0 et autres versions
Produit Versions
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

BuildPlayer(String, Boolean, CancellationToken)

Do a build configured for UWP Applications to the specified path, returns the error from BuildPlayer(UwpBuildInfo, CancellationToken)

C#
public static System.Threading.Tasks.Task<bool> BuildPlayer (string buildDirectory, bool showDialog = true, System.Threading.CancellationToken cancellationToken = default);

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 et autres versions
Produit Versions
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