Accessing Azure services (App Service, Table Storage, CosmosDB with Table API, Event Hubs) from a Unity game
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
_Demo Scenes
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!
Yup, raise an issue if you have problems accessing it.
Use the Issues tab.
Sure, go ahead!