public static void BuildAndRun(BuildLaunchPlayerArgs args) { if (args.target != BuildTarget.WSAPlayer) { throw new ArgumentException("Invalid build target.", "target"); } if (args.installPath.StartsWith(@"\\") || args.installPath.StartsWith("//")) { throw new ArgumentException("Can not Build & Run to network share!"); } WSASDK wsaSDK = EditorUserBuildSettings.wsaSDK; if (wsaSDK == WSASDK.UniversalSDK81) { switch (EditorUserBuildSettings.wsaBuildAndRunDeployTarget) { case WSABuildAndRunDeployTarget.LocalMachine: wsaSDK = WSASDK.SDK81; break; case WSABuildAndRunDeployTarget.WindowsPhone: wsaSDK = WSASDK.PhoneSDK81; break; } } if (((wsaSDK == WSASDK.UniversalSDK81) || (wsaSDK == WSASDK.UWP)) && (EditorUserBuildSettings.wsaBuildAndRunDeployTarget == WSABuildAndRunDeployTarget.LocalMachineAndWindowsPhone)) { BuildAndRunOnBoth(args, wsaSDK); } else { BuildAndRunOnSingle(args, wsaSDK, EditorUserBuildSettings.wsaBuildAndRunDeployTarget); } }
public override void LaunchPlayer(BuildLaunchPlayerArgs args) { // This happens directly from BuildPlayer.cpp }
public void LaunchPlayer(BuildLaunchPlayerArgs args) { }
public override void LaunchPlayer(BuildLaunchPlayerArgs args) { ApplicationLauncher.BuildAndRun(args); }
public override void LaunchPlayer(BuildLaunchPlayerArgs args) { PostProcessAndroidPlayer.Launch(args.target, args.installPath); }
public override void LaunchPlayer(BuildLaunchPlayerArgs args) { PostProcessiPhonePlayer.Launch(args); }
public override void LaunchPlayer(BuildLaunchPlayerArgs args) { }
private static void BuildAndRunOnBoth(BuildLaunchPlayerArgs args, WSASDK wsaSDK) { bool flag;