Not sure if this is the correct place but when I try GetAccountInfoRequest for PlayFabID it seems to return nothing.
Maybe I'm doing something wrong.
I'm trying to get PlayFabID to access the character table (trying to store experience / level / stats in there so people cant cheat) unless theres another way to do it and im just dumb. thanks for the help :]
[ This is how I login ]
public void Login() { lRequest = new LoginWithPlayFabRequest(); lRequest.Username = user.text; lRequest.Password = password.text; PlayFabClientAPI.LoginWithPlayFab(lRequest, result => { errorMessage = "Logged In"; }, error => { Debug.Log(errorMessage = error.ErrorMessage); }, null); }
[ This is the script where the PlayFabID is set (just to test and see if it works) it stays blank when logging in. ]
public string PlayFabID = ""; private void Start() { if (PlayFabClientAPI.IsClientLoggedIn()) { accountInfoReq = new GetAccountInfoRequest(); PlayFabClientAPI.GetAccountInfo(accountInfoReq, result => { Debug.Log("Got account info"); PlayFabID = accountInfoReq.PlayFabId; }, error => { Debug.Log("Failed to get account info"); }, null); } }