So I Had This
handlers.GetOthersInv = function (args,ID){ var inventory = server.GetUserInventory({ PlayFabId: args.ID}); var Mystring = null; for (var i = 0; i < inventory.Inventory.length; i++) { if (inventory.Inventory[i].ItemClass == "Inventory"){ Mystring += "#" + inventory.Inventory[i].DisplayName + " x" + inventory.Inventory[i].RemainingUses + "#"; } } return { messageValue: Mystring }; }
And I Want To Get The message out In Unity
So I have this
public void LoadIslandInventory() { Dictionary<string, string> data = new Dictionary<string, string>(); data.Add("ID", PlayfabLogin.Instance.pfid); PlayFabClientAPI.ExecuteCloudScript(new ExecuteCloudScriptRequest { FunctionName = "GetOthersInv", FunctionParameter = data }, result => { Debug.Log(result.FunctionResult); } , error => { Debug.Log("Cloud Script call failed"); Debug.Log(error.GenerateErrorReport()); }); }
And I Get This Log
System.Collections.Generic.List`1[PlayFab.ClientModels.LogStatement] UnityEngine.Debug:Log(Object)Help!!!!