question

suxitman@gmail.com avatar image
suxitman@gmail.com asked

How to get PlayFAb Title Data with AzureFunction ?

I want this

public void ServerGetTitleData() {

PlayFabServerAPI.GetTitleData( new GetTitleDataRequest(), result => { if (result.Data == null || !result.Data.ContainsKey("MonsterName")) Debug.Log("No MonsterName"); else Debug.Log("MonsterName: " + result.Data["MonsterName"]); }, error => { Debug.Log("Got error getting titleData:"); Debug.Log(error.GenerateErrorReport()); }); }

but in AzureFunction JavaScript and execute it in Unity

unity3dCloudScriptTitle Data
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

JayZuo avatar image JayZuo ♦ commented ·

May I know why you want to call GetTitleData with AzureFunction? In client, you can call "PlayFabClientAPI.GetTitleData" directlly. There should be no need to do this with AzureFunction.

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.