- #How do i download my game sdk from unity cloud build code#
- #How do i download my game sdk from unity cloud build free#
- #How do i download my game sdk from unity cloud build windows#
Last but not least, you need to create a class that corresponds to the Easy Table you’ve created. Don’t forget to set the url of your App Service in the format Ĭheck the UIScript file on the Scripts folder, you’ll find that the method calls are easily self-explainable. Inside it you can also find a prefab GameObject that you can drag/drop onto existing scenes to take advantage of the library.
#How do i download my game sdk from unity cloud build code#
a Result property, that carries the response object (of type ReturnObjectType)Īll the code resides in the AzureServicesForUnity folder.a Status property, that determines the status of the operation.The callback method carries a CallbackResponse object that has The calls have the following formatĪzureUnityServices.Instance.
Inside it you’ll find a scene with some buttons that call the relevant code to do CRUD operations on the database or call an Easy API. There, I created the following method that just responds with a simple JSON message. Since we named our API “Hello”, the Azure portal created a file “Hello.js” on the “api” subfolder.
So, your API will be a JavaScript method. Once you click “Edit”, you will be transferred to “Visual Studio Online” where you’ll see that your App Service is based on a Node.js backend. Again, take notice of the fact that you can alter authorization options for the various HTTP operations you can perform on this specific API. Click the “Add” button and select a name for your new API. Return to the App Service’s “Settings” blade. We’ll add a “score” with datatype “Number” and a “playername” with datatype “String”. You’ll see some columns already defined, click “Add a column” to add a couple more. Once it’s created, click on it and then click on “Manage Schema”. Take notice that you can set authentication options for each table operation. On the “Easy Tables” blade, click on the “Add” button to create a new table.
Again, wait for a few minutes for the backend to initialize. Press the “Initialize App”, after you acknowledge that this will overwrite your existing contents. Once it’s done, close the “Data Connection” blade and return to the “Easy Tables” one. Press “OK” on the blades that you have opened (I counted 3 “OK” button clicks) and wait for the data connection to be created, it may take a couple of minutes.
#How do i download my game sdk from unity cloud build free#
You can use a free database (up to 32MB, so be careful!). Click “Create a new database” (we suppose that you do not have one).įill the necessary settings to create a new database and a new database server to host it. On the “Data Connections” window, click the “+” sign to create a new connection. You’ll see another message that you need a database. Click “Settings”, then “Easy Tables”. You’ll see a message that there is a need to “Configure Easy Tables/Easy APIs”. Create the Databaseįind the newly created App Service via the “All Resources” blade. Select a URL, a Resource Group and a Service Plan (you can even use a free tier).Ĭlick “Create” and wait a few minutes, till the new App Service is deployed. Select “New”, “Web+Mobile”, “Mobile App”. First, you’ll need to visit the new Azure portal at. If not, refer to the last paragraph on this blog post to find out easy ways to get one. We assume you have an active Azure subscription. Creating an Azure App Service and database In this blog post, we’ll describe a small library that allows a game written in Unity to access them. Those can be rather helpful to game developers that want to create a backend for their game. App Service also has a very simple mechanism to store data and use various APIs, called Easy Tables and Easy APIs, respectively. One can easily create web apps that scale, create mobile apps backend and integrate with existing services either on the cloud or on-premise. IntroĪzure App Service is quite an interesting cloud platform to develop web and mobile apps. Update2: check this blog post for an addition to the library that allows you to access Azure Table Storage Service or CosmosDB with Table Storage API. Update: for some additions and fixes to the library check out my newer blog post here Of course, it is completely open source and free to use.
#How do i download my game sdk from unity cloud build windows#
As there are no plugins involved, library is cross-platform and can run everywhere that Unity runs (editor, standalone players, iOS, Android, Windows Phone and Windows Store Apps). You can use it to save highscores, status messages, send messages between players and much more. Azure Services for Unity is a small library (currently in beta) that provides you an easy way you to access an Azure database and/or APIs (hosted on Azure App Service) via the Unity game engine.