如何将 Unity3D 游戏移植到 Universal Apps
你是不是用 Unity 引擎来开发 iOS 或者 Android 的游戏? 如果你不知道,Unity 都可以开发 Windows Phone 8.0 / 8.1, Windows Store Apps 8.0 / 8.1, 和 Universal Apps。 移植你的游戏到微软开发平台是免费支持,不需要买 Unity Pro licenses 。以下的链接可以让开发者多了解移植过程。我会从 Unity 的 Build Settings 构建一个Windows, Windows Phone, 或 Universal Apps 的版本。我会带着大家来更改硬件的问题,例如:分辨率,内存,纹理,键盘,等等。我会让大家了解 .NET API 的差别在哪里,然后介绍几个方案来解决问题:
方案:
- Unity插件, 例子:Github Unity Porting Lab Plugins
- Action (void delegate), 例子: WindowsGateway.cs
- Global instances, 例子: GameManager.cs
- Proxy Interface, 例子: Json.cs
重要资源:
- 学习 Unity 移植的视频:https://www.microsoftvirtualacademy.com/training-courses/how-to-migrate-unity3d-game-to-wp8-1
- 移植过程的文档 (站网站里点击 view the full file): https://github.com/elissatong/UnityPortingLabs/blob/master/20141017%20Porting%20Unity3D%20Games%20to%20WP81.pdf
代码分享:
- https://github.com/elissatong/UnityPortingLabs
- https://github.com/windowsgamessamples/UnityPorting
- https://github.com/ScruffyFurn/SumoBlocks
- https://github.com/MarkerMetro/MarkerMetro.Unity.WinShared
- https://github.com/DaveVoyles/prime31-azure
插件下载:
- 常用的 Unity 插件 (时限免费下载): https://prime31.com/
- 开源的 Azure Mobile Services:https://github.com/bitrave/azure-mobile-services-for-unity3d
- Github 插件例子:
- Unity Plugins for WP8:UnityPlugins: https://github.com/elissatong/UnityPortingLabs/tree/master/UnityPlugins
- Unity Plugins for Universal Apps:https://github.com/elissatong/UnityPortingLabs/tree/master/UnityPluginsForUniversalApps
- Unity Plugins for WP8/Windows 8:https://github.com/windowsgamessamples/UnityPorting/tree/master/PlatformerPlugin
How to Port Unity3D Games to Windows Phone 8.x / Windows 8.x
Do you create iOS or Android games in the Unity engine? If you don't already know, Unity supports games and apps development for Windows Phone 8.0 / 8.1, Windows Store Apps 8.0 / 8.1, and Universal Apps. Porting to the Microsoft platforms are freely supported in Unity, without the need to buy Unity Pro licenses. The useful resources list out helpful links to learn how to port your game to the Microsoft platforms. I will begin by using Unity's Build Settings to build a Windows, Windows Phone, or Universal Apps version. I will then show everyone how to fix common hardware issues like resolution, memory, textures, keyboard support, and more. Then, I will run through common .NET API errors, and a range of solutions based on different use cases.
Use Cases:
- Unity Plugins, ie: Github Unity Porting Lab Plugins
- Action (void delegate), ie: WindowsGateway.cs
- Global instances, ie: GameManager.cs
- Proxy Interface,ie: Json.cs
Useful Resources:
- MVA Unity videos: https://www.microsoftvirtualacademy.com/training-courses/porting-unity-games-to-windows-store-and-windows-phone
- Sample project, code, and plugins: https://github.com/elissatong/UnityPortingLabs
- How to Document (click on "view the full file"): https://github.com/elissatong/UnityPortingLabs/blob/master/20141017%20Porting%20Unity3D%20Games%20to%20WP81.pdf
- Commonly used Unity Plugins (Windows/WP plugins are free to download for a limited time): https://prime31.com/
- GitHub Platformer Plugins: https://github.com/windowsgamessamples/UnityPorting
Thanks for reading,
Elissa