I’m using Authentication v3.3.3. Calling SwitchProfile after logging into another account, the player name is still set to the last account.
Huh, that shouldn’t happen. I’ll investigate that and raise a bug if we can replicate.
Will follow up with the outcome!
The problem is on line 30 in PlayerIdComponent.cs:
m_PlayerId = GetPlayerId();
Changed it to below so that PlayerIdChanged event gets invoked:
PlayerId = GetPlayerId();
2 Likes