SlideShare ist ein Scribd-Unternehmen logo
1 von 8
Getting started on Windows Phone with
Unity
This document is evolving constantly with new and updated information. It is still a work in
progress.
If you need answers that this document does not address, try the UnityWindows Phone
Development Forum: http://forum.unity3d.com/forums/50-Windows-Development.

Contents
Contents ................................................................................................................................. 1
Introduction ................................................................................................................................ 2
Requirements to write a Windows Phone game with Unity ..................................................... 2
Porting Overview........................................................................................................................ 3
Design Time – The Unity Editor Experience ........................................................................... 3
Including Windows Phone code in your Unity project .......................................................... 3
Compile Time - Building from Unity to target Windows Phone ................................................ 3
Player Settings .................................................................................................................... 4
Windows Phone project and Visual Studio - Development Flow.......................................... 5
Run Time - Running the Generated Windows Phone App ...................................................... 5
Hardware Differences ......................................................................................................... 6
Graphics ............................................................................................................................. 6
Displays .............................................................................................................................. 6
Memory ............................................................................................................................... 6
Hardware APIs .................................................................................................................... 6
Beyond the port, Integrating with the platform ..................................................................... 7
Submitting to the store ............................................................................................................... 7
Other useful references.............................................................................................................. 7
Feedback & Revision history ............................................................................................... 8

Getting started on Windows Phone with Unity

1
Introduction
With the release of Unity 4.3, porting games to Windows Phonehas become easier than ever.
This write up should give Unity developers all the high-level information they will need to take an
existing Unity game and tweak it to target the Windows Phone. The guidance is not all inclusive
on technical features, but it should point you on right direction and give you the most relevant
context and links to get further details. Make sure you click on the links, there is a lot that was
not replicated on purpose.

Requirements to write a Windows Phonegame with
Unity
To develop, compile and submit a Unity game to the Windows Phone marketplace, you will
need:
Unity 4.3. Either the Unity free version or Unity Pro will work.
The add-ons for publishing to the Windows Store and to Windows Phone are free, for basic
and Unity Pro users.
Windows Phone SDK 8.0. The WP8 SDK includes a stand-alone version of Visual Studio
Express 2013 - if you already have Visual Studio Pro, Premium or Ultimate, the SDK will
work as an add-in and you can continue to use your version-.
Windows 8.0 or later. If you do not own a Windows 8 license, you can get a 90-day
evaluation version. If you are running Mac OS X or will install on Apple hardware, check
different options for installing using Boot Camp, VMWare , or Parallels.
If you plan to target Windows Store in addition to Windows Phone, running Windows 8.1 and
VS2013 is recommended since you can target both Windows 8.0 and 8.1 with this
configuration.
The upgrade from Windows 8.0 to Windows 8.1 is free
Microsoft account. You will need a Microsoft account to get a developer license. A
Microsoft account is free, you can get one at http://signup.live.com
Windows Phone developer account. This will be needed submit your game to the Windows
Phone marketplace. During this process you will register and get verified as an individual or
as a business who can submit apps and games to the store. This registration is shared with
Windows Store (one registration submits to both stores). Registration is $19 for individuals.
Windows Phone 8 device. In Unity 4.3, deploying and debugging to the Windows Phone
emulator is supported, but it still does not beat testing on a real device.
Once you have a phone, follow these instructions to register your phone for development
and enable deployment and debugging.

Getting started on Windows Phone with Unity

2
Porting Overview
To prepare for a port, you must be familiar with Windows Phoneplatform specific nuances in the
following areas:
Design Time– The Unity Editor Experience
Build Time– Building from Unity Editor to produce a Windows Phone app
Run Time– Running the Windows Phone App

Design Time – The Unity Editor Experience
To port your game to Windows Phone, you will still be using the Unity IDE. This will feel very
familiar and keep your productivity high.
The design-time looks the same and should feel the same since within the editor Unity is
running your game on Mono run-time. It is when you build and run your Windows Phone project
that you will notice the difference as the Windows Phone runtime is .Net for Windows Phone.
.NET for Windows Phone is a subset of .NET, so you might run into some errors with some
APIs that are in Mono and are not in .NET. For most of these types, there is alternate types and
functionality using .NET or WinRT APIs, but you will have to tweak your code to make it run.
For details on porting techniques, please read our Windows Phone – Porting
Tipsdocumentation.
It’s worth noting that you can debug directly into your Unity code from within a generated
Windows Phonesolution using Visual Studio.

Including Windows Phonecode in your Unity project
If including script files that will run inside the Unity editor, use #if (UNITY_WP8 &&
!UNITY_EDITOR) pre-processor directives to refer to code that should not run when testing in
the editor. This will ensure that the code will only run within the generated actual Windows
Phoneapplication. The !UNITY_EDITOR deals with the scenario where you are running in the
editor with the platform switched to Windows Phone via File > Build Settings.
If you are comfortable with the code running in the editor and when the platform is configured to
Windows Phoneapps, you can simply use #if UNITY_WP8.Note that code running in the editor
can’t reference Windows Phone APIs, since the editor will not know how to resolve these.
.Net for Windows Phone APIs include most of the functionality to do integration with Windows
Phone such as implementing launchers and tasks, or access to sensors, you will still be able to
reference all these from Unity plugins, just not directly within code executing in the editor.

Compile Time - Building from Unity to target Windows
Phone
Getting started on Windows Phone with Unity

3
In order to build you must switch your target platform in the Build Settings window toWindows
Phone8using File > Build Settings

When you build, this will generate a Windows Phone Xaml/C# solution that you will compile in
Visual studio to get your final package. (aka XAP file). .

Player Settings

Getting started on Windows Phone with Unity

4
After clicking on the Player Settings button, you will see settings that you can configure relating
to the outputted Windows Phonesolution which affect the creation of the Windows Phoneapp
manifest file.

Windows Phoneproject and Visual Studio- Development Flow
When you target Windows Phone, you will likely run into a few of the issues we mentioned
above, please refer to the Windows Phone Porting Tipswhite paper, specifically the getting your
app to compile in Unity section, andfor more on how to resolve API related errors during porting.
Once you have resolved anycompile timeerrors, Unity will export a project that you will compile
using Visual Studio to test, run and publish your game. This means there is two steps to
creating a game:
1. Generate player and project from Unity
2. Compile in Visual Studio to create final binary and Windows Phone solution
It’s worth noting that each time you build inside Unity, you can target the same folder and Unity
will not overwrite any solution file changes that you have made in Visual Studio. Unity will
update the following folders and files:
1. The /Data folder in your project
2. Project reference assemblies (added to project root excluded from project itself)
This allows you to alter the Visual Studio project and add more native features or to tweak
manifest and configuration files and not lose these Visual Studio changes if you make a change
to the gameplay.

One important thing to note is that if you make any changes inside Unity that would affect the
project file (such as new plugins or references) then you will need to manually merge your
Visual Studio project file to pick up these changes.

Run Time - Running the Generated Windows
PhoneApp

Getting started on Windows Phone with Unity

5
Compiling your project in Visual Studio generates the binary and manifest files required to run
as a Windows Phoneapp. At this point you have a working binary, but it might still need tweaks
to accommodate for the hardware and the Windows Phone features that differentiate your
games and make it a huge hit. Listed below, find some key platform-specific considerations for
tailoring your game.

Hardware Differences
Windows Phone 8 has a detailed minimum hardware spec that all devices must meet; you
should expect high-degree of consistency across the devices. In this section we won’t cover
every detail on the hardware, but we will highlight some factors that can affect your game play.

Graphics
Hardware acceleration with programmable GPU. Windows Phone uses Direct3D with feature
level set to 9_3. MSDN has a great table of the supported features by level. The two take-away
to notice are shader model level 2 and max texture size of 4096.

Displays
Windows phone 8 devices currently come in 4 resolutions: 480x800(WVGA), 768x1280
(WXGA), 720x1280(720p)and 1080x1920(1020p). To find the resolution of your device, you can
query the Screen.width and Screen.height properties within your Unity scripts; you can then
scale appropriately within the game. For static assets outside the game (tiles, splash image,
etc.) supplying assets for the WXGA resolution often suffices, and Windows Phone will scale
these.

Memory
Memory comes in multiple configurations: 512 MB of RAM for the WVGA devices, and
minimum of 1GB RAM for the 720p devices. The newest phones such as Nokia 1020 are up to
2GB. The OS limits how much memory a single application can consume, see the Windows
Phone Porting Tipsdocument for how to extend memory and also how to opt out of low memory
device support (not recommended).

Hardware APIs
Accelerometer is available on all phones and directly accessible from Unity APIs.
Magnetometer and gyroscope are optional on the hardware on the phone. Compass,
Microphone, Location and Camera APIs are all available in 4.3
Unity support for Windows Phone is still growing so not all APIs have been ported, there is only
a few missing, here are the ones I can think of (list might not be all inclusive):
-

WWW is implemented but multiplayer networking APIs are missing. You can used .NET
APIs or third party libraries (e.g. photon) as an alternative.
GPU profiling is not available yet.

Getting started on Windows Phone with Unity

6
Beyond the port, Integrating with the platform
Once you are done with the basic port for your game, you should enhance your game with
some of the platform features that delight Windows Phone users. You will probably also want to
add some of the Windows Phone APIs to monetize your game. Such as:
Live Tiles and Push Notifications
Monetization including Trial and In App Purchase Support.
More information will be added on these topics.

Submitting to the store
To submit to the store, you will need your Windows Phone developer account and a licensed
version of Unity. The trial version of Unity, will produce a water mark in the build that says
“development build” on the bottom right of your game, and this will not pass certification. The
Unity add-ons for Windows Phone are free for Unity basic and even Unity Pro users, the addons should be included with the editor.
When you are ready to submit to the store, follow these steps. Specially #4,
1. Check out the App certification requirements for Windows Phone
2. Become familiar with Windows Phone app product submission process.
3. Make sure you handle properly the Back Button behavior (see Porting tips for Windows
Phone with Unity)
4. Run your app through the Windows Phone Store Test Kit. The Windows Phone Store
test kit is a suite of automated tests and manual tests for your game.
The kit will identify and help you fix issues that Microsoft testers will find during
certification; by finding them early, you will save a lot of time.
5. The store kit can be executed from within visual studio (under the project tab), this
walkthrough gives you step-by step- instructions and details on running the kit.
You will be tempted to just run the automated tests and ignore the manual ones; this is a
bad idea; you can learn a lot about the platform and about making your game better from
looking at what the Microsoft certification folks are testing for; give the manual tests a try
and see how your game fares.
6. [Optional] Since this might be a new platform for you, we recommend you go through a
beta submission. More details at the “Beta testing your app” page , on MSDN
7. Submit your master configuration. Unity will create a debug, release, and master
configuration for your visual Studio project. Make sure you submit the master, not the
release one.

Other useful references
Unity’s Windows Phone 8: Getting Started guide is a must read.

Getting started on Windows Phone with Unity

7
The getting started with Windows Phone will walk you through downloading the tools,
registering your phone for development (aka unlocking the phone) and writing a basic app that
walks you through Visual studio project structure.
Other white papers and resources in this series include:
Getting started on Windows Phone with Unity
Porting tips for Windows Phone with Unity
Getting started on Windows Store with Unity
Porting tips for Windows Store with Unity
Sample Unity Project Github Repository
The Windows Phone SDK samples collection has hundreds of coding samples to accomplish
specific tasks. They are all useful, but I recommend you look for the ones that come from the
Windows Phone SDK team (they will have a Windows phone logo).

Feedback & Revision history
There is a lot more to cover. Check out the rest of the series and out suggested references.
Let us know what missed or you want to hear more about, drop an email to
jaimer@microsoft.com.
Revision
1.0

Date
11/15/2013

Changes
Seeding this conversation with a
big braindump. Sharing for
comments.

Getting started on Windows Phone with Unity

Contributors
Jaime Rodriguez
(Microsoft),
Keith Patton
(MarkerMetro), the
MarkerMetro team.

8

Weitere ähnliche Inhalte

Was ist angesagt?

Iasi 15 noiembrie 2009 Introduction to Windows Mobile programming
Iasi  15 noiembrie 2009   Introduction to Windows Mobile programmingIasi  15 noiembrie 2009   Introduction to Windows Mobile programming
Iasi 15 noiembrie 2009 Introduction to Windows Mobile programmingCatalin Gheorghiu
 
Windows phone 8 session 1
Windows phone 8 session 1Windows phone 8 session 1
Windows phone 8 session 1hitesh chothani
 
Mobile os by waqas
Mobile os by waqasMobile os by waqas
Mobile os by waqas8neutron8
 
Android software development – the first few hours
Android software development – the first few hoursAndroid software development – the first few hours
Android software development – the first few hourssjmarsh
 
OSCON Titanium Tutorial
OSCON Titanium TutorialOSCON Titanium Tutorial
OSCON Titanium TutorialKevin Whinnery
 
Hospital app project (how to upload app)
Hospital app project (how to upload app)Hospital app project (how to upload app)
Hospital app project (how to upload app)MAHFUZ RAIHAN
 
Installing android sdk on net beans
Installing android sdk on net beansInstalling android sdk on net beans
Installing android sdk on net beansAravindharamanan S
 
Visual studio ide componects dot net framwork
Visual studio ide componects dot net framworkVisual studio ide componects dot net framwork
Visual studio ide componects dot net framworkDipen Parmar
 
Introduction to UWP - Universal Windows Platform Application Development
Introduction to UWP - Universal Windows Platform Application DevelopmentIntroduction to UWP - Universal Windows Platform Application Development
Introduction to UWP - Universal Windows Platform Application DevelopmentLohith Goudagere Nagaraj
 
Migrating Unity3D projects to Windows 8
Migrating Unity3D projects to Windows 8Migrating Unity3D projects to Windows 8
Migrating Unity3D projects to Windows 8282productions
 
Android studio installation
Android studio installationAndroid studio installation
Android studio installationPoojaBele1
 
Develop hololens
Develop hololensDevelop hololens
Develop hololensJames Quick
 
Plug yourself in and your app will never be the same (2 hour edition)
Plug yourself in and your app will never be the same (2 hour edition)Plug yourself in and your app will never be the same (2 hour edition)
Plug yourself in and your app will never be the same (2 hour edition)Mikkel Flindt Heisterberg
 

Was ist angesagt? (19)

Iasi 15 noiembrie 2009 Introduction to Windows Mobile programming
Iasi  15 noiembrie 2009   Introduction to Windows Mobile programmingIasi  15 noiembrie 2009   Introduction to Windows Mobile programming
Iasi 15 noiembrie 2009 Introduction to Windows Mobile programming
 
Windows phone 8 session 1
Windows phone 8 session 1Windows phone 8 session 1
Windows phone 8 session 1
 
Mobile os by waqas
Mobile os by waqasMobile os by waqas
Mobile os by waqas
 
Android software development – the first few hours
Android software development – the first few hoursAndroid software development – the first few hours
Android software development – the first few hours
 
PICS QUIZ - INTEGRATION
PICS QUIZ - INTEGRATIONPICS QUIZ - INTEGRATION
PICS QUIZ - INTEGRATION
 
Presentation[1]
Presentation[1]Presentation[1]
Presentation[1]
 
Android development module
Android development moduleAndroid development module
Android development module
 
Windows Universal Apps
Windows Universal AppsWindows Universal Apps
Windows Universal Apps
 
Training android
Training androidTraining android
Training android
 
OSCON Titanium Tutorial
OSCON Titanium TutorialOSCON Titanium Tutorial
OSCON Titanium Tutorial
 
Hospital app project (how to upload app)
Hospital app project (how to upload app)Hospital app project (how to upload app)
Hospital app project (how to upload app)
 
Installing android sdk on net beans
Installing android sdk on net beansInstalling android sdk on net beans
Installing android sdk on net beans
 
Visual studio ide componects dot net framwork
Visual studio ide componects dot net framworkVisual studio ide componects dot net framwork
Visual studio ide componects dot net framwork
 
Introduction to UWP - Universal Windows Platform Application Development
Introduction to UWP - Universal Windows Platform Application DevelopmentIntroduction to UWP - Universal Windows Platform Application Development
Introduction to UWP - Universal Windows Platform Application Development
 
Migrating Unity3D projects to Windows 8
Migrating Unity3D projects to Windows 8Migrating Unity3D projects to Windows 8
Migrating Unity3D projects to Windows 8
 
Android studio installation
Android studio installationAndroid studio installation
Android studio installation
 
Nitro pro-10
Nitro pro-10Nitro pro-10
Nitro pro-10
 
Develop hololens
Develop hololensDevelop hololens
Develop hololens
 
Plug yourself in and your app will never be the same (2 hour edition)
Plug yourself in and your app will never be the same (2 hour edition)Plug yourself in and your app will never be the same (2 hour edition)
Plug yourself in and your app will never be the same (2 hour edition)
 

Andere mochten auch

20140222 Unity Windows lab 移轉實作營
20140222 Unity Windows lab 移轉實作營 20140222 Unity Windows lab 移轉實作營
20140222 Unity Windows lab 移轉實作營 Meng-Ru (Raymond) Tsai
 
How I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine Yard
How I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine YardHow I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine Yard
How I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine YardSV Ruby on Rails Meetup
 
O.N.E. Glamour Brand Identity
O.N.E. Glamour Brand IdentityO.N.E. Glamour Brand Identity
O.N.E. Glamour Brand IdentityShakara Hinds
 

Andere mochten auch (7)

20131122 台北遊戲開發者論壇
20131122 台北遊戲開發者論壇20131122 台北遊戲開發者論壇
20131122 台北遊戲開發者論壇
 
20140222 Unity Windows lab 移轉實作營
20140222 Unity Windows lab 移轉實作營 20140222 Unity Windows lab 移轉實作營
20140222 Unity Windows lab 移轉實作營
 
How I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine Yard
How I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine YardHow I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine Yard
How I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine Yard
 
Windows 市集註冊及上架
Windows 市集註冊及上架Windows 市集註冊及上架
Windows 市集註冊及上架
 
O.N.E. Glamour Brand Identity
O.N.E. Glamour Brand IdentityO.N.E. Glamour Brand Identity
O.N.E. Glamour Brand Identity
 
SV Ruby on Rails Meetup - FlickMunk
SV Ruby on Rails Meetup - FlickMunkSV Ruby on Rails Meetup - FlickMunk
SV Ruby on Rails Meetup - FlickMunk
 
Windows phone app 上架說明書
Windows phone app 上架說明書Windows phone app 上架說明書
Windows phone app 上架說明書
 

Ähnlich wie Getting Started with Unity for Windows Phone Development

Homework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thHomework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thRishi Kumar
 
An Introduction to Universal Windows Apps
An Introduction to Universal Windows AppsAn Introduction to Universal Windows Apps
An Introduction to Universal Windows Apps Ken Cenerelli
 
Porting unity games to windows - London Unity User Group
Porting unity games to windows - London Unity User GroupPorting unity games to windows - London Unity User Group
Porting unity games to windows - London Unity User GroupLee Stott
 
How to develop a Flutter app.pdf
How to develop a Flutter app.pdfHow to develop a Flutter app.pdf
How to develop a Flutter app.pdfSmith Daniel
 
Ways to Choose the Right Game Development Platform.pdf
Ways to Choose the Right Game Development Platform.pdfWays to Choose the Right Game Development Platform.pdf
Ways to Choose the Right Game Development Platform.pdfMuhammad Waqas
 
Explaining the WinBuilder framework
Explaining the WinBuilder frameworkExplaining the WinBuilder framework
Explaining the WinBuilder frameworkNuno Brito
 
Windows 8
Windows 8Windows 8
Windows 8liguad1
 
Dev windows phone_apps_getting_started_guide
Dev windows phone_apps_getting_started_guideDev windows phone_apps_getting_started_guide
Dev windows phone_apps_getting_started_guideTrioBlack Trioblack
 
Building an standard image for windows7
Building an standard image for windows7Building an standard image for windows7
Building an standard image for windows7AMMAR MANZAR
 
How to build PhoneGap App for Windows Phone?
How to build PhoneGap App for Windows Phone?How to build PhoneGap App for Windows Phone?
How to build PhoneGap App for Windows Phone?MobilePundits
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptxSundaresanB5
 
Operating system presentation
Operating system  presentationOperating system  presentation
Operating system presentationDescon
 
Getting Started with WP7 Development
Getting Started with WP7 DevelopmentGetting Started with WP7 Development
Getting Started with WP7 DevelopmentJeff Bramwell
 
Windows 8 ppt by parveen vijaraniya
Windows 8 ppt by parveen vijaraniyaWindows 8 ppt by parveen vijaraniya
Windows 8 ppt by parveen vijaraniyavijaraniya
 

Ähnlich wie Getting Started with Unity for Windows Phone Development (20)

Getting started windows store unity
Getting started windows store unityGetting started windows store unity
Getting started windows store unity
 
Porting tips windows phone unity
Porting tips windows phone unityPorting tips windows phone unity
Porting tips windows phone unity
 
Homework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thHomework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12th
 
An Introduction to Universal Windows Apps
An Introduction to Universal Windows AppsAn Introduction to Universal Windows Apps
An Introduction to Universal Windows Apps
 
Porting unity games to windows - London Unity User Group
Porting unity games to windows - London Unity User GroupPorting unity games to windows - London Unity User Group
Porting unity games to windows - London Unity User Group
 
How to develop a Flutter app.pdf
How to develop a Flutter app.pdfHow to develop a Flutter app.pdf
How to develop a Flutter app.pdf
 
Ways to Choose the Right Game Development Platform.pdf
Ways to Choose the Right Game Development Platform.pdfWays to Choose the Right Game Development Platform.pdf
Ways to Choose the Right Game Development Platform.pdf
 
Getting started with android studio
Getting started with android studioGetting started with android studio
Getting started with android studio
 
Explaining the WinBuilder framework
Explaining the WinBuilder frameworkExplaining the WinBuilder framework
Explaining the WinBuilder framework
 
Windows 8
Windows 8Windows 8
Windows 8
 
Dev windows phone_apps_getting_started_guide
Dev windows phone_apps_getting_started_guideDev windows phone_apps_getting_started_guide
Dev windows phone_apps_getting_started_guide
 
Building an standard image for windows7
Building an standard image for windows7Building an standard image for windows7
Building an standard image for windows7
 
Porting tips windows store unity
Porting tips windows store unityPorting tips windows store unity
Porting tips windows store unity
 
How to build PhoneGap App for Windows Phone?
How to build PhoneGap App for Windows Phone?How to build PhoneGap App for Windows Phone?
How to build PhoneGap App for Windows Phone?
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
 
Operating system presentation
Operating system  presentationOperating system  presentation
Operating system presentation
 
Getting Started with WP7 Development
Getting Started with WP7 DevelopmentGetting Started with WP7 Development
Getting Started with WP7 Development
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Windows 8 ppt by parveen vijaraniya
Windows 8 ppt by parveen vijaraniyaWindows 8 ppt by parveen vijaraniya
Windows 8 ppt by parveen vijaraniya
 

Mehr von Meng-Ru (Raymond) Tsai

20211119 ntuh azure hpc workshop final
20211119 ntuh azure hpc workshop final20211119 ntuh azure hpc workshop final
20211119 ntuh azure hpc workshop finalMeng-Ru (Raymond) Tsai
 
202002 DIGI+Talent數位網路學院線上課程: 五大領堿先修課
202002 DIGI+Talent數位網路學院線上課程: 五大領堿先修課202002 DIGI+Talent數位網路學院線上課程: 五大領堿先修課
202002 DIGI+Talent數位網路學院線上課程: 五大領堿先修課Meng-Ru (Raymond) Tsai
 
20171024 文化大學 1 azure big data ai
20171024 文化大學 1 azure big data ai20171024 文化大學 1 azure big data ai
20171024 文化大學 1 azure big data aiMeng-Ru (Raymond) Tsai
 
2 module07 cognitive services and the bot framework
2 module07 cognitive services and the bot framework2 module07 cognitive services and the bot framework
2 module07 cognitive services and the bot frameworkMeng-Ru (Raymond) Tsai
 
20170123 外交學院 大數據趨勢與應用
20170123 外交學院 大數據趨勢與應用20170123 外交學院 大數據趨勢與應用
20170123 外交學院 大數據趨勢與應用Meng-Ru (Raymond) Tsai
 
20160525 跨界新識力沙龍論壇 機器學習與跨業應用展望
20160525 跨界新識力沙龍論壇 機器學習與跨業應用展望20160525 跨界新識力沙龍論壇 機器學習與跨業應用展望
20160525 跨界新識力沙龍論壇 機器學習與跨業應用展望Meng-Ru (Raymond) Tsai
 
20170108 微軟大數據整合解決方案- cortana intelligence suite
20170108 微軟大數據整合解決方案- cortana intelligence suite20170108 微軟大數據整合解決方案- cortana intelligence suite
20170108 微軟大數據整合解決方案- cortana intelligence suiteMeng-Ru (Raymond) Tsai
 
20160323 台大 微軟學生大使招生分享會
20160323 台大 微軟學生大使招生分享會20160323 台大 微軟學生大使招生分享會
20160323 台大 微軟學生大使招生分享會Meng-Ru (Raymond) Tsai
 
20160304 blockchain in fsi client ready raymond
20160304 blockchain in fsi client ready raymond20160304 blockchain in fsi client ready raymond
20160304 blockchain in fsi client ready raymondMeng-Ru (Raymond) Tsai
 
20151016 中興大學 big data + machine learning
20151016 中興大學 big data + machine learning20151016 中興大學 big data + machine learning
20151016 中興大學 big data + machine learningMeng-Ru (Raymond) Tsai
 
20150723 windows 10 uwp 20150723 24 台北遊戲論壇
20150723 windows 10 uwp 20150723 24 台北遊戲論壇20150723 windows 10 uwp 20150723 24 台北遊戲論壇
20150723 windows 10 uwp 20150723 24 台北遊戲論壇Meng-Ru (Raymond) Tsai
 

Mehr von Meng-Ru (Raymond) Tsai (20)

20211119 ntuh azure hpc workshop final
20211119 ntuh azure hpc workshop final20211119 ntuh azure hpc workshop final
20211119 ntuh azure hpc workshop final
 
202002 DIGI+Talent數位網路學院線上課程: 五大領堿先修課
202002 DIGI+Talent數位網路學院線上課程: 五大領堿先修課202002 DIGI+Talent數位網路學院線上課程: 五大領堿先修課
202002 DIGI+Talent數位網路學院線上課程: 五大領堿先修課
 
20190627 ai+blockchain
20190627 ai+blockchain20190627 ai+blockchain
20190627 ai+blockchain
 
20171024 文化大學 1 azure big data ai
20171024 文化大學 1 azure big data ai20171024 文化大學 1 azure big data ai
20171024 文化大學 1 azure big data ai
 
20171024 文化大學 2 big data ai
20171024 文化大學 2 big data ai20171024 文化大學 2 big data ai
20171024 文化大學 2 big data ai
 
20180126 microsoft ai on healthcare
20180126 microsoft ai on healthcare20180126 microsoft ai on healthcare
20180126 microsoft ai on healthcare
 
20170330 彰基 azure healthcare
20170330 彰基 azure healthcare20170330 彰基 azure healthcare
20170330 彰基 azure healthcare
 
4 module09 iot
4 module09 iot4 module09 iot
4 module09 iot
 
3 module06 monitoring
3 module06 monitoring3 module06 monitoring
3 module06 monitoring
 
2 module07 cognitive services and the bot framework
2 module07 cognitive services and the bot framework2 module07 cognitive services and the bot framework
2 module07 cognitive services and the bot framework
 
1 module04 dev ops
1 module04 dev ops1 module04 dev ops
1 module04 dev ops
 
20170123 外交學院 大數據趨勢與應用
20170123 外交學院 大數據趨勢與應用20170123 外交學院 大數據趨勢與應用
20170123 外交學院 大數據趨勢與應用
 
20160525 跨界新識力沙龍論壇 機器學習與跨業應用展望
20160525 跨界新識力沙龍論壇 機器學習與跨業應用展望20160525 跨界新識力沙龍論壇 機器學習與跨業應用展望
20160525 跨界新識力沙龍論壇 機器學習與跨業應用展望
 
20170108 微軟大數據整合解決方案- cortana intelligence suite
20170108 微軟大數據整合解決方案- cortana intelligence suite20170108 微軟大數據整合解決方案- cortana intelligence suite
20170108 微軟大數據整合解決方案- cortana intelligence suite
 
20160930 bot framework workshop
20160930 bot framework workshop20160930 bot framework workshop
20160930 bot framework workshop
 
20160930 bot framework workshop
20160930 bot framework workshop20160930 bot framework workshop
20160930 bot framework workshop
 
20160323 台大 微軟學生大使招生分享會
20160323 台大 微軟學生大使招生分享會20160323 台大 微軟學生大使招生分享會
20160323 台大 微軟學生大使招生分享會
 
20160304 blockchain in fsi client ready raymond
20160304 blockchain in fsi client ready raymond20160304 blockchain in fsi client ready raymond
20160304 blockchain in fsi client ready raymond
 
20151016 中興大學 big data + machine learning
20151016 中興大學 big data + machine learning20151016 中興大學 big data + machine learning
20151016 中興大學 big data + machine learning
 
20150723 windows 10 uwp 20150723 24 台北遊戲論壇
20150723 windows 10 uwp 20150723 24 台北遊戲論壇20150723 windows 10 uwp 20150723 24 台北遊戲論壇
20150723 windows 10 uwp 20150723 24 台北遊戲論壇
 

Kürzlich hochgeladen

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 

Kürzlich hochgeladen (20)

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 

Getting Started with Unity for Windows Phone Development

  • 1. Getting started on Windows Phone with Unity This document is evolving constantly with new and updated information. It is still a work in progress. If you need answers that this document does not address, try the UnityWindows Phone Development Forum: http://forum.unity3d.com/forums/50-Windows-Development. Contents Contents ................................................................................................................................. 1 Introduction ................................................................................................................................ 2 Requirements to write a Windows Phone game with Unity ..................................................... 2 Porting Overview........................................................................................................................ 3 Design Time – The Unity Editor Experience ........................................................................... 3 Including Windows Phone code in your Unity project .......................................................... 3 Compile Time - Building from Unity to target Windows Phone ................................................ 3 Player Settings .................................................................................................................... 4 Windows Phone project and Visual Studio - Development Flow.......................................... 5 Run Time - Running the Generated Windows Phone App ...................................................... 5 Hardware Differences ......................................................................................................... 6 Graphics ............................................................................................................................. 6 Displays .............................................................................................................................. 6 Memory ............................................................................................................................... 6 Hardware APIs .................................................................................................................... 6 Beyond the port, Integrating with the platform ..................................................................... 7 Submitting to the store ............................................................................................................... 7 Other useful references.............................................................................................................. 7 Feedback & Revision history ............................................................................................... 8 Getting started on Windows Phone with Unity 1
  • 2. Introduction With the release of Unity 4.3, porting games to Windows Phonehas become easier than ever. This write up should give Unity developers all the high-level information they will need to take an existing Unity game and tweak it to target the Windows Phone. The guidance is not all inclusive on technical features, but it should point you on right direction and give you the most relevant context and links to get further details. Make sure you click on the links, there is a lot that was not replicated on purpose. Requirements to write a Windows Phonegame with Unity To develop, compile and submit a Unity game to the Windows Phone marketplace, you will need: Unity 4.3. Either the Unity free version or Unity Pro will work. The add-ons for publishing to the Windows Store and to Windows Phone are free, for basic and Unity Pro users. Windows Phone SDK 8.0. The WP8 SDK includes a stand-alone version of Visual Studio Express 2013 - if you already have Visual Studio Pro, Premium or Ultimate, the SDK will work as an add-in and you can continue to use your version-. Windows 8.0 or later. If you do not own a Windows 8 license, you can get a 90-day evaluation version. If you are running Mac OS X or will install on Apple hardware, check different options for installing using Boot Camp, VMWare , or Parallels. If you plan to target Windows Store in addition to Windows Phone, running Windows 8.1 and VS2013 is recommended since you can target both Windows 8.0 and 8.1 with this configuration. The upgrade from Windows 8.0 to Windows 8.1 is free Microsoft account. You will need a Microsoft account to get a developer license. A Microsoft account is free, you can get one at http://signup.live.com Windows Phone developer account. This will be needed submit your game to the Windows Phone marketplace. During this process you will register and get verified as an individual or as a business who can submit apps and games to the store. This registration is shared with Windows Store (one registration submits to both stores). Registration is $19 for individuals. Windows Phone 8 device. In Unity 4.3, deploying and debugging to the Windows Phone emulator is supported, but it still does not beat testing on a real device. Once you have a phone, follow these instructions to register your phone for development and enable deployment and debugging. Getting started on Windows Phone with Unity 2
  • 3. Porting Overview To prepare for a port, you must be familiar with Windows Phoneplatform specific nuances in the following areas: Design Time– The Unity Editor Experience Build Time– Building from Unity Editor to produce a Windows Phone app Run Time– Running the Windows Phone App Design Time – The Unity Editor Experience To port your game to Windows Phone, you will still be using the Unity IDE. This will feel very familiar and keep your productivity high. The design-time looks the same and should feel the same since within the editor Unity is running your game on Mono run-time. It is when you build and run your Windows Phone project that you will notice the difference as the Windows Phone runtime is .Net for Windows Phone. .NET for Windows Phone is a subset of .NET, so you might run into some errors with some APIs that are in Mono and are not in .NET. For most of these types, there is alternate types and functionality using .NET or WinRT APIs, but you will have to tweak your code to make it run. For details on porting techniques, please read our Windows Phone – Porting Tipsdocumentation. It’s worth noting that you can debug directly into your Unity code from within a generated Windows Phonesolution using Visual Studio. Including Windows Phonecode in your Unity project If including script files that will run inside the Unity editor, use #if (UNITY_WP8 && !UNITY_EDITOR) pre-processor directives to refer to code that should not run when testing in the editor. This will ensure that the code will only run within the generated actual Windows Phoneapplication. The !UNITY_EDITOR deals with the scenario where you are running in the editor with the platform switched to Windows Phone via File > Build Settings. If you are comfortable with the code running in the editor and when the platform is configured to Windows Phoneapps, you can simply use #if UNITY_WP8.Note that code running in the editor can’t reference Windows Phone APIs, since the editor will not know how to resolve these. .Net for Windows Phone APIs include most of the functionality to do integration with Windows Phone such as implementing launchers and tasks, or access to sensors, you will still be able to reference all these from Unity plugins, just not directly within code executing in the editor. Compile Time - Building from Unity to target Windows Phone Getting started on Windows Phone with Unity 3
  • 4. In order to build you must switch your target platform in the Build Settings window toWindows Phone8using File > Build Settings When you build, this will generate a Windows Phone Xaml/C# solution that you will compile in Visual studio to get your final package. (aka XAP file). . Player Settings Getting started on Windows Phone with Unity 4
  • 5. After clicking on the Player Settings button, you will see settings that you can configure relating to the outputted Windows Phonesolution which affect the creation of the Windows Phoneapp manifest file. Windows Phoneproject and Visual Studio- Development Flow When you target Windows Phone, you will likely run into a few of the issues we mentioned above, please refer to the Windows Phone Porting Tipswhite paper, specifically the getting your app to compile in Unity section, andfor more on how to resolve API related errors during porting. Once you have resolved anycompile timeerrors, Unity will export a project that you will compile using Visual Studio to test, run and publish your game. This means there is two steps to creating a game: 1. Generate player and project from Unity 2. Compile in Visual Studio to create final binary and Windows Phone solution It’s worth noting that each time you build inside Unity, you can target the same folder and Unity will not overwrite any solution file changes that you have made in Visual Studio. Unity will update the following folders and files: 1. The /Data folder in your project 2. Project reference assemblies (added to project root excluded from project itself) This allows you to alter the Visual Studio project and add more native features or to tweak manifest and configuration files and not lose these Visual Studio changes if you make a change to the gameplay. One important thing to note is that if you make any changes inside Unity that would affect the project file (such as new plugins or references) then you will need to manually merge your Visual Studio project file to pick up these changes. Run Time - Running the Generated Windows PhoneApp Getting started on Windows Phone with Unity 5
  • 6. Compiling your project in Visual Studio generates the binary and manifest files required to run as a Windows Phoneapp. At this point you have a working binary, but it might still need tweaks to accommodate for the hardware and the Windows Phone features that differentiate your games and make it a huge hit. Listed below, find some key platform-specific considerations for tailoring your game. Hardware Differences Windows Phone 8 has a detailed minimum hardware spec that all devices must meet; you should expect high-degree of consistency across the devices. In this section we won’t cover every detail on the hardware, but we will highlight some factors that can affect your game play. Graphics Hardware acceleration with programmable GPU. Windows Phone uses Direct3D with feature level set to 9_3. MSDN has a great table of the supported features by level. The two take-away to notice are shader model level 2 and max texture size of 4096. Displays Windows phone 8 devices currently come in 4 resolutions: 480x800(WVGA), 768x1280 (WXGA), 720x1280(720p)and 1080x1920(1020p). To find the resolution of your device, you can query the Screen.width and Screen.height properties within your Unity scripts; you can then scale appropriately within the game. For static assets outside the game (tiles, splash image, etc.) supplying assets for the WXGA resolution often suffices, and Windows Phone will scale these. Memory Memory comes in multiple configurations: 512 MB of RAM for the WVGA devices, and minimum of 1GB RAM for the 720p devices. The newest phones such as Nokia 1020 are up to 2GB. The OS limits how much memory a single application can consume, see the Windows Phone Porting Tipsdocument for how to extend memory and also how to opt out of low memory device support (not recommended). Hardware APIs Accelerometer is available on all phones and directly accessible from Unity APIs. Magnetometer and gyroscope are optional on the hardware on the phone. Compass, Microphone, Location and Camera APIs are all available in 4.3 Unity support for Windows Phone is still growing so not all APIs have been ported, there is only a few missing, here are the ones I can think of (list might not be all inclusive): - WWW is implemented but multiplayer networking APIs are missing. You can used .NET APIs or third party libraries (e.g. photon) as an alternative. GPU profiling is not available yet. Getting started on Windows Phone with Unity 6
  • 7. Beyond the port, Integrating with the platform Once you are done with the basic port for your game, you should enhance your game with some of the platform features that delight Windows Phone users. You will probably also want to add some of the Windows Phone APIs to monetize your game. Such as: Live Tiles and Push Notifications Monetization including Trial and In App Purchase Support. More information will be added on these topics. Submitting to the store To submit to the store, you will need your Windows Phone developer account and a licensed version of Unity. The trial version of Unity, will produce a water mark in the build that says “development build” on the bottom right of your game, and this will not pass certification. The Unity add-ons for Windows Phone are free for Unity basic and even Unity Pro users, the addons should be included with the editor. When you are ready to submit to the store, follow these steps. Specially #4, 1. Check out the App certification requirements for Windows Phone 2. Become familiar with Windows Phone app product submission process. 3. Make sure you handle properly the Back Button behavior (see Porting tips for Windows Phone with Unity) 4. Run your app through the Windows Phone Store Test Kit. The Windows Phone Store test kit is a suite of automated tests and manual tests for your game. The kit will identify and help you fix issues that Microsoft testers will find during certification; by finding them early, you will save a lot of time. 5. The store kit can be executed from within visual studio (under the project tab), this walkthrough gives you step-by step- instructions and details on running the kit. You will be tempted to just run the automated tests and ignore the manual ones; this is a bad idea; you can learn a lot about the platform and about making your game better from looking at what the Microsoft certification folks are testing for; give the manual tests a try and see how your game fares. 6. [Optional] Since this might be a new platform for you, we recommend you go through a beta submission. More details at the “Beta testing your app” page , on MSDN 7. Submit your master configuration. Unity will create a debug, release, and master configuration for your visual Studio project. Make sure you submit the master, not the release one. Other useful references Unity’s Windows Phone 8: Getting Started guide is a must read. Getting started on Windows Phone with Unity 7
  • 8. The getting started with Windows Phone will walk you through downloading the tools, registering your phone for development (aka unlocking the phone) and writing a basic app that walks you through Visual studio project structure. Other white papers and resources in this series include: Getting started on Windows Phone with Unity Porting tips for Windows Phone with Unity Getting started on Windows Store with Unity Porting tips for Windows Store with Unity Sample Unity Project Github Repository The Windows Phone SDK samples collection has hundreds of coding samples to accomplish specific tasks. They are all useful, but I recommend you look for the ones that come from the Windows Phone SDK team (they will have a Windows phone logo). Feedback & Revision history There is a lot more to cover. Check out the rest of the series and out suggested references. Let us know what missed or you want to hear more about, drop an email to jaimer@microsoft.com. Revision 1.0 Date 11/15/2013 Changes Seeding this conversation with a big braindump. Sharing for comments. Getting started on Windows Phone with Unity Contributors Jaime Rodriguez (Microsoft), Keith Patton (MarkerMetro), the MarkerMetro team. 8