Legacy Documentation: Version 4.6
Language: English
Windows Phone 8.1: Getting Started
Windows Universal Applications

Windows Phone 8.1: FAQ

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

How do I build to Windows Phone 8.1 platform from Unity?

To build a Windows Phone 8.1 application, select “Phone 8.1” SDK under Windows Store platform.

Which player settings do I set for Windows Phone 8.1 games? Windows Store or Windows Phone 8?

Windows Store.

Which platform defines are defined for Windows Phone 8.1?

UNITY_METRO, UNITY_WP_8_1, UNITY_WINRT, UNITY_WINRT_8_1. Additionally, NETFX_CORE is defined when compiling scripts with Microsoft .NET compiler.

How do I choose which compiler to use for my C# scripts?

Under publishing settings on Windows Store player settings, there’s a drop down menu called “Compilation overrides”. There are 3 settings:

1. None. All C# scripts will get compiled with Mono C# compiler;
2. Use Net Core Partially. Scripts that are in folders “Assets/Plugins”, “Assets/Standard Assets” and “Assets/Pro Standard Assets” will get compiled with Mono C# compiler, while the rest will be compiled with Microsoft C# compiler;
3. Use Net Core. All scripts will get compiled with Microsoft C# compiler.

Both compilers have their ups and downs. Compiling scripts will mono C# compiler will allow them to be referenced by JavaScript and Boo scripts, which, for example, is needed for Angry Bots (hence you have to set it to none). However, using Microsoft C# compiler will allow you to use Microsoft specific APIs without the need for plugins - just wrap the code in #if NETFX_CORE/#endif, and it will compile and work just fine.

Windows Phone 8.1: Getting Started
Windows Universal Applications