Unity Dashboard
The dashboard is the SDK's account hub: profile, link account, change password, language, account deletion and logout.
Open it
C#
await AlogameSDK.ShowFloatingButton(); // the floating account button opens the dashboard
await AlogameSDK.HideFloatingButton();
await AlogameSDK.ShowDashboard(); // or open it from your own button
Single screens
| Call | Opens |
|---|---|
AlogameAuth.ShowChangePassword() | change password |
AlogameAuth.ShowUpdateProfile() | profile editor on Android, resolves with the updated user; on iOS it opens the dashboard, which contains it |
Logout and account deletion
Logout and account deletion from the dashboard end the session without a call from the game, then the SDK shows its login screen again. Follow it with the session events:
C#
AlogameAuth.SessionEnded += _ => ReturnToTitleScreen();
AlogameAuth.LoggedIn += user => EnterGame(user);
See Authentication.
Account deletion without UI
C#
AccountStatus status = await AlogameAccount.GetStatus();
AccountResult requested = await AlogameAccount.RequestDeletion();
AccountResult cancelled = await AlogameAccount.CancelDeletion();