WINDOWS10 is Microsoft's newest generation of cross-platform and device application operating systems. It unifies the operating systems of the entire Windows product family, including PCs, tablets, smart phones, embedded systems, Xbox One, and new product surface hubs and HoloLens, and so on, sharing a common Application architecture (UWP) and Windows Store ecosystem. With the launch of this year's 7-29 Windows10, Microsoft has started to push the WINDOWS10 system to global users, and all users will be able to upgrade for free in the coming year.
Although the official version of the Unity Engine, 5.1.x, does not currently support the WINDOWS10 platform, the 5.2 beta version has fully supported the WINDOWS10 platform from the beginning (i.e. 5.2B1). Based on my own experience, the author uses the Unity 5.2B5 version to give you a brief introduction on how to build a WINDOWS10 unity game environment.
First, the development environment
1. First, the developer must upgrade the system to the WINDOWS10 RTM version.
2. Then of course the installation of Visual Studio 2015, currently available at the official free community version:
Https://www.visualstudio.com/downloads/download-visual-studio-vs
3. It is important to note that you must install the WINDOWS10 SDK, which is the option to check the yellow box below.
4. Install the Unity5.2beta version:
Http://unity3d.com/unity/beta
Ii. release of Win10 project
1. Using any of the game items, the author uses the best-selling 3D airplane game –space shooter on the Unity store.
2. Release the game's Win10 project.
In the 5.2 version of Unity's Build setting window, you can already see the WIN10 option. Specifically, under the Windows Store platform, the SDK chooses to Universal 10,UAP build type as XAML so that it can generate game engineering for the WIN10 UWP architecture.
3. Open the WIN10 project, but unfortunately the new project is compiled. The error message is as follows:
1>c:\program Files (x86) \msbuild\14.0\bin\microsoft.common.currentversion.targets (2048,5): Error Msb3774:could not find SDK "Microsoft.VCLibs.AppLocal, Version=14.0″.
4. Modify the project settings so that the project is compiled by:
The reason for the failure of the project compilation is mainly due to the fact that the WIN10 SDK is updated faster, and Unity's WIN10 project uses an SDK version older than the VS2015 installed SDK version. We recommend that you fix this problem as follows:
1) Create an empty project for the Win10 UWP of C # using the VS2015 template
2) Use the Project.json file of the Win10 UWP project you just created for the Unity WIN10 project to ensure that Unity's WIN10 engineering invokes the correct SDK and runtime. The operation is as follows:
Step One:
Copy the Project.json file from the Win10 UWP project directory to the WIN10 directory of the Unity game release. That
WIN10UWP, unitygame \ Win10 \ Unitygame
(
Assume:
Win10 UWP Project is named: WIN10UWP
The name of the Unity project is: Unitygame, the directory to publish the WIN10 platform is: Win10
)
Step Two:
Modify the Csproj file for the Unity Win10 Project
Platform version set to latest version
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
Adding Project.json to use
<ItemGroup>
<!–a reference to the entire. Net Framework and Windows SDK is automatically included–>
<content include= "Applicationinsights.config" >
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<none include= "Project.json"/>
</ItemGroup>
3) Open the WIN10 project again, remove the two references and modules shown, and compile the
5. The screen running on the WIN10 system phone Simulator:
I hope that through the above steps, we can successfully run and develop unity games on the WINDOWS10, but also welcome you to the new platform to provide more and more excellent game works!
Thank you!
This article transferred from: https://blogs.msdn.microsoft.com/windows__windows_game_dev_faq_/2015/08/19/unity-windows10/
Unity Game porting to Windows10