In this lesson, I will show you how to Deploy your Azure Functions with Visual Studio Code. We will then register that function as a PlayFab cloud script so we can use it for Unity. All the steps taken in this video are necessary to be able to use PlayFab cloud script for your Unity project.
Category: PlayFab
How to Use Azure Functions for Playfab Cloud Scripts
In this tutorial, I will show you how to create and use Azure functions for PlayFab scripts. To create an Azure function you will go down to your workspace window in visual studio code and click the plus sign you can then select create function. You will want to use an HTTP Trigger give it a name and a namespace and select Anonymous. This will then create a Azure function template. To use Playfab you will want to make sure you install the Playfab SDK. You will then want to do a bit of set up for you function after which you can create your C# script just as you would inside Unity. The main thing you want to do inside this function is your Requests to Playfab. You use Azure and playfab cloud scripts to run requests that need to be more secure than running them on the client’s device.
How to Set up Azure Coding Environment for Playfab Cloud Scripts
In this tutorial on how to set up your Azure Coding Environment for Playfab Cloud scripts, I will show you how to get started with installing Visual Studio Code, .NET 6.0 SDK, and the Azure Function extension. After this tutorial, you will be able to write C# cloud scripts for PlayFab and deploy them to Azure.