Xbox One开发模式和Unity免费版本 [英] Xbox one dev mode and Unity free version

查看:262
本文介绍了Xbox One开发模式和Unity免费版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个零售Xbox控制台,该控制台具有开发模式激活的Unity(最新的免费版本)和一个MSDN个人开发者帐户.

我能够从Xbox上的Visual Studio部署测试应用程序,但是我想知道如何在Unity上的Xbox上构建和运行应用程序?

我联系了unity,他们说我需要我的客户经理的批准,但是我是个人开发者.

我要从Unity部署到Xbox,我正在从Mac(Windows 10版本)并行运行,但是Mac上安装了Unity.

解决方案

在进行了一些研究之后,这里是一种在启用XboxOne Developer的零售控制台上运行Unity内置应用的方法.

在需要MSDN开发人员帐户之前,这是一台运行Windows 10和XboxOne零售控制台的计算机.

在Unity中,单击文件->构建设置.

将平台切换到Windows应用商店(请务必点击切换平台"以使更改生效).

将SDK更改为通用10,将UWP构建类型更改为D3D或XAML.

在桌面(YourAppFolder)上创建一个新文件夹

选择生成",然后将项目保存到新创建的文件夹中.

打开VS项目,配置构建设置以在XboxOne开发者控制台上运行该项目(说明可在此链接中找到)

https://msdn.microsoft.com/zh-cn/windows/uwp/xbox-apps/getting-started

基本上,这使您喜欢在XboxOne上运行的新创建的项目.

当然要在Xbox One平台上发布游戏,您需要向ID @ XBOX程序申请,可以在其网站上找到有关该主题的更多信息.

可在提供的链接上找到更多有用的信息:

https://developer.microsoft.com/en-us/windows/holographic/exporting_and_building_a_unity_visual_studio_solution

10/10/2016

嘿,MS在此问题上添加了很棒的文档,请访问此链接:

https://msdn.microsoft. com/en-us/windows/uwp/xbox-apps/development-lanes-unity

以及此视频的版本:

https://www.youtube.com/watch?v=f0Ptvw7k-CE

09/03/2017

从Ms网站上获得的另一个重要资源.

在VS上打开项目后,远程计算机将没有相同的配置来配置第一个设置为远程计算机,然后选择项目"->属性"->调试",然后在其中配置远程计算机设置,XboxOne应该处于打开状态同一网络.

2019年2月8日更新.

在YouTube上找到了这段很棒的视频(版权归上载者Filmstorm),介绍了如何从Unity部署到Xbox One.

https://www.youtube.com/watch?v=uibEl3SmI1k

Unity 2019更新(12/08/2019).

即使过程没有太大变化,这里还是从VS 2017直接运行Unity游戏到XboxOne控制台的步骤.

假定您具有开发人员许可证并启用了XboxOne开发应用程序.

在文件下,选择构建设置",然后将平台切换到通用Windows平台.

此后,确保将Architecture设置为x64,并将Build类型设置为D3D,并将Build配置设置为Release.

然后转到播放器"->证书"下的播放器设置",创建一个新证书并将其保存在可以提取的位置.

点击构建并将其保存到您选择的文件夹中.

构建完成后,打开VS工具栏上的.sin项目更改,从调试"到发布",x64,再到远程机器.

在yourprojectName(通用窗口)下,打开Package.appxmanifest-> Packaging-> Publisher,选择您创建的证书,然后关闭标签.

右键单击yourprojectName(通用窗口)->属性"->调试",选择计算机名称下的远程计算机,键入您的XboxOne名称(可以在xbox开发者主页上找到),然后关闭.

按VS上的播放按钮(运行过程可能需要几分钟),并且您的Unity内置游戏应在启用了dev的XboxOne控制台上运行.

享受.

I have a retail Xbox one console with Dev Mode activated Unity (latest free version) and a MSDN individual developer account.

I am able to deploy test apps from Visual studio on the Xbox however i want to know how do i build and run apps on Xbox from Unity?

I contacted unity and they said i need approval from my account manager however I'm an individual developer.

What I want to do is deploy from Unity to Xbox one I'm running parallel from a Mac (Windows 10 version) but Unity is installed on my Mac.

解决方案

After some research here is a way to run a Unity built app on a retail XboxOne Developer enabled console.

Before you need a MSDN developer account A machine running Windows 10 and a XboxOne retail console.

From Unity click File -> Build settings.

Switch the platform to Windows Store (be sure to hit Switch platform for the change to take effect).

Change the SDK to universal 10 and UWP build type to D3D or XAML.

Create a new folder on your desktop (YourAppFolder)

Select Build and save the project to your newly created folder.

Open the VS project configure the build settings to run the project on your XboxOne dev console (instructions can be found in this link)

https://msdn.microsoft.com/en-us/windows/uwp/xbox-apps/getting-started

Basically thats it enjoy your newly created project running on your XboxOne.

Of course to publish games on the Xbox One platform you need to apply to ID@XBOX program more info on the topic can be found on their website.

More helpful information can be found on the links provided:

https://developer.microsoft.com/en-us/windows/holographic/exporting_and_building_a_unity_visual_studio_solution

10/10/2016

Hey MS has added a great documentation on this matter look into this link :

https://msdn.microsoft.com/en-us/windows/uwp/xbox-apps/development-lanes-unity

And a video version of this :

https://www.youtube.com/watch?v=f0Ptvw7k-CE

09/03/2017

From the Ms website another great resource.

https://blogs.windows.com/buildingapps/2016/04/18/intro-to-porting-unity-3d-games-to-uwp-building-and-deploying/#2dx9hHw4uQZmsDGc.97

10/05/2017

After importing a Unity plugin and trying to build to UWP i encountered Unity compiler errors after help from the plugin publisher and some digging if you experience the same issues you can do the following :

On the build menu after selecting the Windows 10 platform etc press on the menu "Player settings" there under the Configuration tab you can change the .NET backend to ILCPP this should (and i repeat should) solve the compiler errors.

After opening the project on VS you will not have the same configuration for the remote machine to configure 1st set to remote machine then select Project -> Properties -> Debugging and in there you configure your remote machine settings your XboxOne should be on the same network.

02/08/2019 update.

Found this great video on YouTube (credits go to the uploader Filmstorm) on how to deploy to the Xbox One from Unity.

https://www.youtube.com/watch?v=uibEl3SmI1k

Unity 2019 update (12/08/2019).

Even though the process has not changed much here are the steps to run a Unity game from VS 2017 directly to your XboxOne console.

Assuming you have the developer licence and enabled your XboxOne dev app.

Under file select Build settings then switch the platform to Universal windows platform.

After that make sure the Architecture is set to x64 and Build type is D3D and Build configuration is Release.

After that head on to Player settings under Player -> certificate create a new certificate and save it somewhere you can then fetch it.

Click build and save to a folder of your choice.

After the build is completed open the .sin project change on the VS tool bar from Debug to Release, x64 and target to remote machine.

Under yourprojectName(universal windows) open Package.appxmanifest -> Packaging -> Publisher select the certificate you have created and close the tab.

Right click on yourprojectName(universal windows) -> Properties -> Debugging select remote machine under machine name type your XboxOne name (can be found on the xbox dev home) apply and close.

Press the play button on VS (the run process may take a few minutes) and your Unity built game should be running on your dev enabled XboxOne console.

Enjoy.

这篇关于Xbox One开发模式和Unity免费版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆