i have a wierd situation that i need help with. i created an account with user name, password and email and also tried to assign the display name when the playfab account was created. it usually works but one time i did get an account created that did not assign the display name. the playfab username is populated but the display name field is not. since i am using player prefs to store the information on each device i do have the playfab name created on register and can use it in the game but how can i write that information back to playfab in case there is another situation where this happens? to slightly complicate my question i am also using PlayFabAuthenticator(); from the tutorial which works fine but it does create a second player id which is linked to the original player id. i need to be able to write the display name to both for clarity as the number of accounts created grows. i am using c# and would appreciate any help. here is my code for trying to initially populate the display name field. thanks.
***THIS IS IN THE PLAYFABCODE SCRIPT USED TO CREATE AN ACCOUNT ***
public InputField Username, Email, Password;
public Text ErrorMessage;
private string userName, userEmail, userPassword;
public void RegisterClick()
{
var register = new RegisterPlayFabUserRequest
{
Username = Username.text,
Email = Email.text,
Password = Password.text,
DisplayName = userName
};
PlayFabClientAPI.RegisterPlayFabUser(register, OnRegisterSuccess, OnRegisterFailure);
}
private void OnRegisterSuccess(RegisterPlayFabUserResult result)
{
ErrorMessage.text = "";
userEmail = Email.text;
userName = Username.text;
userPassword = Password.text;
PlayerPrefs.SetString("EMAIL", userEmail);
PlayerPrefs.SetString("PASSWORD", userPassword);
PlayerPrefs.SetString("USERNAME", userName);
AccountInfo.StartAccountInfo(result.PlayFabId);
SceneManager.LoadScene(sceneName: "InitialSetup");
}
PlayFabAuthenticator() is launched on awake from the AccountInfo script and follows the tutorial