If you’ve followed my previous Unity3d Azure tutorials I’ve covered two well known Unity Azure plugins - Prime31 and Bitrave. Bitrave had better multi-platform support, however it required the ‘JSON.NET’ paid asset to support iOS and Android. But then there was issues with iOS AOT compiler. Because of this I decided to start a new Azure Mobile Services library for Unity3d to support multi-platforms like Unity3d - iOS, Android and Windows without need for paid plugins.
You can drop the Unity3dAzure libraryinto your existing Unity project or try out the demo project to get started.
Download the Unity3d Azure demo project or use git to clone the project:
git clone https://github.com/Unity3dAzure/MobileServicesDemo.git
In Unity3d open scene Scenes/HighscoresDemo.unity
Scripts/HighscoresDemoUI.cs
script unto the Scene’s ‘Main Camera’ in the Hierarchy panel.)Paste Azure Mobile Service app’s connection strings into Unity Editor Inspector fields (or else directly into script Scripts/HighscoresDemoUI.cs
)
If you want to save score with userId then create Facebook app
Scripts/HighscoresDemoUI.cs
)Special thanks to Jason Fox and Bret Bentzinger who put together the UnityRestClient library using the JsonFX plugin.