Why? i can't understand why i get all the time this error. I'm using a TextMeshProUGUI to obtain the username, email and password but always I get this error.
The weird case is, when I put a string with hardcoding inside the function AddUsernamePassword() it Works with the same name i typed in the input field.
public void SingInNewAccountPlayFab(string username, string password, string email) { Debug.Log("username: " + username); Debug.Log("password: " + password); Debug.Log("email: " + email); PlayFabClientAPI.AddUsernamePassword(new AddUsernamePasswordRequest() { Username = username, // if i type Username = "Whatever" Works but It isn't if i take it from username parameter Password = password, Email = email }, result => { if (SceneManager.GetActiveScene().name == "Menu") { GameObject menu = GameObject.Find("OptionsPanel"); menu.GetComponent<UIPlayfabRegister>().WritePopUpPanel("Account added, now you will preserve all your content."); menu.GetComponent<UIPlayfabRegister>().CloseIfRegistered(); UserSettingsRepository.Instance.UserData.username = username; UserSettingsRepository.Instance.UserData.password = password; UserSettingsRepository.Instance.UserData.email = email; UserSettingsRepository.Instance.Save(); } AuthenticateWithPlayFabClient(username, password); }, OnPlayFabError); }