private void Start()
    {
        PlayerProfileViewConstraints playerProfileViewConstraints = new PlayerProfileViewConstraints();

        playerProfileViewConstraints.ShowContactEmailAddresses = true;
        playerProfileViewConstraints.ShowDisplayName           = true;
        PlayFabClientAPI.GetPlayerProfile(new GetPlayerProfileRequest {
            ProfileConstraints = playerProfileViewConstraints
        },
                                          ProfileResult =>
        {
            Username.text    = ProfileResult.PlayerProfile.DisplayName;
            Email.text       = ProfileResult.PlayerProfile.ContactEmailAddresses[0].EmailAddress;
            EmailChange.text = ProfileResult.PlayerProfile.ContactEmailAddresses[0].EmailAddress;
        }, ProfileError => Debug.Log(ProfileError.GenerateErrorReport()));
        Password.text = PlayerPrefs.GetString("Password");
    }
 public ProfileException(ProfileError error, string message, Exception innerException) : base(message, innerException)
 {
     Error = error;
 }
 public ProfileException(ProfileError error, string message) : base(message)
 {
     Error = error;
 }
 public ProfileException(ProfileError error)
 {
     Error = error;
 }