Test your Unity Game on Windows Phone!!!
Mobile devices are a very common place to deploy your games. The Windows Phone Store has in excess of 4 billion store downloads, making it a great place to market your games. So it might help to actually test your games on some physical devices. This article is step by step how to get your Unity Game deployed to your test device!
Steps from Unity
Step 1. Build a game in unity with the Cross Platform Input Controls, OR using the touch api. For testing, I built a very simple level with my 2D character, 4 platforms, and the Cross Platform Input Controls “Single Stick Controls”.
Step 2. From Unity, Select File -> Build Settings…
Step 3. Unselect any scenes you don’t want, for example sample asset scenes, or scenes that came with assets you purchased and imported. Select just your scenes to deploy.
Step 4. Select Windows Phone 8
If it is not greyed out, select the “Switch Platform” button.
Step 5. Push the “Build” button. When it asks for a folder, make sure you select an empty folder, as it will populate it up quite a bit.
Set up you development environment
Step 2. If you chose to use your own visual studio, ensure you download the Windows Phone 8 SDK.
I had the best success with Visual Studio 2012 w/Windows Phone 8 SDK.
Step 3. Register as an App Developer.
Step 4. Developer unlock your phone using the Windows Phone Developer Registration tool. See link.
Step 5. Ensure your phone’s date and time is set to the current date and time for YOUR TIME ZONE. I have a dev kit phone and had to manually set the date and time. If this is the case for you, you only need to match on the minute.
Step 6. Open the .sln file from the folder you saved your game to.
Step 7. With your phone still plugged into your computer via a usb cable, unlock the screen.
Step 8. Press f5, with the build settings selection set to “Device”.
But I got error: Exception from HRESULT: 0×89721500
Step 1. Close Visual Studio
Step 2. Delete the folder: “C:\Users\<username>\AppData\Local\Microsoft\Phone Tools\CoreCon\11.0″. It will be filled with lots of stuff. Below is just a portion of what was in mine.
And there you go! You now have your game on a test device!
Thanks for reading, and please tweet and like!
To see more articles like this, go to: www.IndieDevSpot.com or http://indiedevspot.azurewebsites.net/2014/03/18/test-your-unity-game-on-windows-phone/