Hi Guys
I can't find the way out of waiting for callback returned from PlayFab before continuing the execution of other unity c# functions. PlayFab API is asyn but unity functions are not they all are sync, my function where I am calling the PlayFab API ends before it gets results and then executes other functions that require for those results, the request sent but unity doesn't wait for the result. The thread doesn't work. Please help
public void GetPlayerProfile() { //getting success call PlayFabClientAPI.GetPlayerProfile(new GetPlayerProfileRequest() { PlayFabId = PlayFabId, ProfileConstraints = new PlayerProfileViewConstraints() { ShowDisplayName = true, } }, (result) => // "at this point we are exiting the function without waiting for result" { //doing soemthing with code }, (error) => { //doing soemthing with code }); }
Thanks
Regards