

Live revision selection remains the same: new commits to GitHub must be set to live in Game Manager as described above. If you commit multiple files, they will be concatenated together into a single PlayFab CloudScript (Legacy) revision. Once bound to GitHub, the manual upload option is removed, and new CloudScript (Legacy) revisions are automatically made for each GitHub commit to the "master" branch. At this point, you should be able to select your GitHub repository, and bind it to your title.Return to the GitHub page in the PlayFab Game Manager (refresh tab).Create a new, empty repository in GitHub.The next window will have an orange AUTHORIZE GITHUB ACCOUNT button.Select the USE GITHUB button (the gray button in the previous screenshot).You must have a GitHub account, and you must be logged in. You may also use GitHub to manage your CloudScript (Legacy) revisions. The first time you press the orange UPLOAD NEW REVISION button, you will see a file selector where you can upload a file from your local machine.Īfter you have added several revisions, you can select which submitted revision is live with the drop-down. This enables you to update or roll back to/from multiple versions of CloudScript (Legacy). By default, new uploads must be deployed by selecting the DEPLOY REVISION # TO LIVE link.Fix the error, and select SUBMIT again.During the upload, the PlayFab service runs a simple LINT check over your CloudScript (Legacy) for syntax errors. Each file you upload will create a new revision.

You can upload your own custom methods via the Game Manager. You should see a number of CloudScript (Legacy) methods - such as HelloWorld, which logs the message Hello PLAYERID - where PLAYERID is the current player's PlayFab ID. Select Automation on the left side bar.This revision includes a number of methods that you can use for learning and testing CloudScript (Legacy). JavaScript samples correspond to using the PlayFab CloudScript (Legacy) service.Īfter creating a title, PlayFab automatically includes an example script as your first revision.


You should be familiar with the basics of PlayFab.Please note the following when reading this: The Writing custom CloudScript tutorial covers writing the CloudScript (Legacy) code itself.
