Hi,
Currently I am working on a feature that allows my users to choose the language.
The code I use:
PlayFabProfilesAPI.SetProfileLanguage( new PlayFab.ProfilesModels.SetProfileLanguageRequest { Entity = new PlayFab.ProfilesModels.EntityKey { Id = "Player ID (title)", Type = "title_player_account" }, ExpectedVersion = 0, Language = "en", }, success => { Debug.Log("set successfully"); }, fail => { Debug.Log(fail.GenerateErrorReport()); });
but i can't find how to get "Player ID (title)".
I'm try:
PlayFabClientAPI.GetPlayerCombinedInfo(new GetPlayerCombinedInfoRequest(), result => { Debug.Log("playfabId "+result.InfoResultPayload.AccountInfo.PlayFabId); }, fail => { Debug.Log(fail.GenerateErrorReport()); });
and:
PlayFabClientAPI.GetAccountInfo(new GetAccountInfoRequest(), result => { Debug.Log("playfabId "+result.AccountInfo.PlayFabId); }, fail => { Debug.Log(fail.GenerateErrorReport()); });
but I just get Player ID
Am I wrong somewhere? Do you have any ideas?