Posted on

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.