A library to access and use various Azure services useful for games written in Unity game engine. Includes (a) an SDK and (b) sample code that uses the SDK.
Microsoft Azure has a great service to host apps called App Service which allows you to connect and expose a database via an awesome feature called Easy Tables. App Service also allows you to easily created various API endpoints for your game, via the Easy APIs feature. Easy Tables are a features of Azure Mobile Apps.
Azure Storage has a NoSQL key-value store called Table Storage Service which can be used to store precious data for your game (such as highscores, save data, chat logs etc.). This library also contains some methods to access Table Storage Service from within a Unity game.
The same code that is used for Table Storage can be used to access the globally distributed database called CosmosDB using Table API.
You can also send data to Azure Event Hubs, a hyper-scale telemetry ingestion service that collects, transforms, and stores millions of events.
In the project source files you can find three scenes, one that contains demos for App Service, one for Table Storage and one for Event Hubs.
There are three blog posts that describe the library and its usage
- Original blog post describing the library and Easy Tables access
- Updates, fixes and workarounds
- Accessing Table Storage and CosmosDB via Table Storage API
- Fork or clone this repository
- In the Assets/AzureServicesForUnity folder you'll find a folder called
_Demo Scenes
- This folder contains three scenes that contain demos for App Service, EventHub and Storage interaction, respectively. Their relevant source files exist in the same folder. These files call the core files of the library.
- Core files of the library reside in three different folders in the Assets/AzureServicesForUnity. Feel free to use the folders you need (e.g. if you need only AppService interaction, copy the files inside the AppService folder). Do not forget to include the Shared folder.
On the server side you would want to do this. On the client side, check the Facebook Unity SDK. For other providers, chec here.
For more information regarding Azure App Service Authentication check this GitHub repo.
Nope, on purpose. One of the original goals of this library was to be plugin-free.
Hopefully on every platform supported by Unity. If you found a platform that this does not work, ping me!
Can I use this SDK to access the CosmosDB Table API?
Yup, raise an issue if you have problems accessing it.
Use the Issues tab.
Sure, go ahead!