Hi, how do i read the return value from my cloud script?
So here's my cloud script code
var result = []; var getLeaderboardResult = server.GetLeaderboard ( { "StatisticName": "PLAYER_SCORE", "MaxResultsCount": args.amount, "StartPosition": 0 } ); var getCharLeaderboardResult = server.GetUserReadOnlyData ( { "PlayFabId": currentPlayerId, "Keys": ["LEADERBOARD_CHARACTER"] } ); result.push(getLeaderboardResult); result.push(getCharLeaderboardResult); return result;
On my client (Unity), in the executeCloudCode success callback, what should i do so i can get the leaderboard value (score, name, etc) and the readOnly data?