I have a very strange issue in Unity, it's especially strange because i didn't change anything in the code, this issue just randomly started occuring? First it occurred and i realized it was because playfab editor extensions had forcefully logged itself out. I fixed that, it started working again... then I tried it the next day, and it no longer worked. But Playfab editor extensions is logged in...
I've tried reinstalling Playfab from scratch, logging out and back in, updating to the latest version(both the SDK and editor extensions) but it's always returning null...
Here's my code, the print is printing off "Null" and then there's a null reference on the debug.log right after,
public void OnLoginSuccessful(CBSLoginResult result)
{
print(result.Result);
Debug.Log($"You have logged in into Playfab, playfab id : {result.Result.PlayFabId}");
m_playfabId = result.Result.PlayFabId;
Global.UserName = result.Result.InfoResultPayload.AccountInfo.Username;
string customId = result.Result.InfoResultPayload.AccountInfo.CustomIdInfo?.CustomId;
Global.IsGuest = string.IsNullOrEmpty(customId);
if(!Global.IsGuest)
{
Global.AccountWalletAddress = customId;
}
GetPlayerInfo(m_playfabId);
Global.Save(Global.Const.AUTO_LOGIN, m_autoLogin ? 1 : 0);
}
And again, this code always worked perfectly fine, i never even touched the script, it just randomly stopped working... It is logging in, this is the login success callback..
Any help would be appreciated!