The WinBridge is a plugin for Unity3D that enables easier command of native controls and features of WinRT (the underlying library behind Windows Store, Windows Phone and Xbox One apps). Currently implemented:
Copy the contents of the folder CopyContentsToUnityAssets into your Unity project.
This class manages full interaction with the Windows Store. To enable the functionality of all these methods during debug mode, please see the next point (Windows Store Proxy). Please note that most of these functions do result in an error if the app hasn't been published yet and debug settings aren't set properly.
WinBridge.PurchaseFullApp(WinControls.Store.PurchaseResultHandler handler)
WinBridge.IsFullAppActive()
WinBridge.GetFullAppInfo(WinControls.Store.FullAppInfoHandler handler)
WinBridge.PurchaseProduct(string productId, WinControls.Store.PurchaseResultHandler handler)
WinBridge.GetProductInfo(string productId, WinControls.Store.ProductInfoHandler handler)
WinBridge.RequestReview(string label, string okLabel, string cancelLabel)
A Windows Store Proxy can be attached to any GameObject with Add Component - WinBridge - Windows Store Proxy. The inspector editor is fairly self-explanatory - for questions around the purpose of individual fields, please consult the official Windows Store documentation on MSDN .
If you know what you're doing, hate convenience and you feel like providing a full WindowsStoreProxy.xml straight to the plugin, call:
WinControls.Store.EnableDebugWindowsStoreProxy(string WindowsStoreProxyXML);
The MessageBox can be added to any GameObject with Add Component - WinBridge - MessageBox. Simply make all your settings in the inspector window. To invoke the message box, call Show() on that component.
WinBridge.VideoPlayback.PlayVideoFullscreen(string videoUrl, bool controlsEnabled, bool tapSkipsVideo)
This repository is open-source and currently maintained by a small group of Microsoft developer evangelists. It should be noted that this plugin is provided as-is with no warranties given. Feel free to change code. It is released under the MS-LPL license. For details, please see the attached license.md (MS-LPL) or http://clrinterop.codeplex.com/license.