Hi, I have developed a login system, I managed to add email/password as a way to authenticate and it works well but I would like to have the player set a Display Name as well. How to do that in C# script? Thank you
Hi, I have developed a login system, I managed to add email/password as a way to authenticate and it works well but I would like to have the player set a Display Name as well. How to do that in C# script? Thank you
You can use https://api.playfab.com/documentation/client/method/UpdateUserTitleDisplayName. It's also available in all our SDKs.
Hi Brendan, thank you for your reply. How to get the PlayFab Display Name of a player in C# script? Thank you
You can use https://api.playfab.com/documentation/client/method/GetAccountInfo to retrieve any user's display name using a PlayFabID, Email, or Username.
Hi Brendan, thank you for your reply. How to get PlayFab Display Name from a player in C# script? Thank you
I think that you need create a form with header .
ex:
string json = @"{ 'PlayFabID': 'MYID' }";
Dictionary<string, string> headers = new Dictionary<string, string>();
headers.Add("Content-Type", "application/json");
headers.Add("Content-Length", json.Length.ToString());
json = json.Replace("'", "\"");
byte[] data = System.Text.Ecoding.UTF8.GetBytes(json);
WWW www = new WWW(URL, data, headers);
then you give yield on www.
its work for me and i think that's should help you.
3 People are following this question.