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.
PlayFab
- How to Use Playfab in Unity 3D: Setup (Lesson 1)
- How to Use Playfab in Unity 3D: Login (Lesson 2)
- How to Use PlayFab in Unity 3D: Mobile Login (Lesson 3)
- How to Use PlayFab in Unity 3D: Player Statistics (Lesson 4)
- How to Use PlayFab in Unity 3D: Cloud Scripts (Lesson 5)
- How to Use PlayFab in Unity 3D: Leaderboards (Lesson 6)
- How to Use PlayFab in Unity 3D: Leaderboards Display (Lesson 7)
- How to Use PlayFab in Unity 3D: Player Data (Lesson 8)
- How to Use PlayFab in Unity Tutorial: Friends List (Lesson 9)
- Set up Azure Coding Environment for Playfab
- Azure Functions for Playfab Cloud Scripts
- Queue Trigger
- How To Deploy and Register an Azure Function as a Playfab Cloud Script