Today, something somewhat weird occured to me. If you build a game in Unity engine, you can easily publish it for Windows Phone, even in old and very low-end devices like the Lumia 520. This phone has a Qualcomm Snapdragon S4 MSM8227 with ISA ARMv7 supported. The Raspberry Pi 2 Model B device also has an ARM v7 processor and can be loaded with Windows 10, that support the Universal Windows Plarform, which Unity supports. You can imagine the question, can a game built with Unity be published into a Raspberry Pi 2?
I’ll jump straight to the answer: Yes but don’t do it! Games built in Unity can and will run on a Raspberry Pi 2 loaded with Windows 10 IoT Core even though the performance is mediocre, at best. So, if you’re like me and want to try this (why? because you can!), follow the below steps
– Get a Raspberry Pi 2 Model B, easy and inexpensive
– Get started with Windows IoT, setup your PC for Raspberry development
– Set up the Raspberry by downloading and installing Windows 10 IoT Core on it
– Download Unity (version tested is 5.3.2, but other versions should work)
– Find or develop a Unity game, you can find some in my blog
– Publish it for Universal Windows Platform
– Open the published game in Visual Studio
– Deploy the UWP game in the Raspberry
– (optional but recommended) Connect a monitor via HDMI and a mouse to the Raspberry to see the game running
If you’re wondering, the games I tested to jump into the mediocre performance conclusion were two pretty simple 2D games I’ve built; the match-3 game and the puzzle one. Frame rate was 2-3 frames per second, making the performance totally unacceptable. I’m not aware of any optimizations that one could do in order to make them run faster, unless, of course, one could fiddle with the engine’s source code. Well, either that or Unity (or another engine) releases a version with Raspberry-friendly compatible output. Till then, I’ll be more than happy to enjoy Snake and Tetris-like games on my Raspberry!