ResetGuest
[Player Network SDK and MSDK] Resets the guest account. A new guest account is generated if the user logs in through the guest channel again.
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS, Windows
platform.Supports
Android, iOS, Windows
platform.note
MSDK currently does not support Windows.
Function Definition
- Unity
- Unreal Engine
void ResetGuest();
static void ResetGuest();
Callback Processing
The callback processing API is GUABaseResultObservers. The callback data structure is GUABaseResult.
- Unity
- Unreal Engine
The callback event is LoginBaseResultEvents
.
The callback methodID is GUA_ACCOUNT_RESET_GUEST
.
The callback event is OnBaseResultNotify
.
The callback methodID is kMethodIDAccountResetGuest
.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().ResetGuest();
GUA_NAMESPACE::GUAAccountService::ResetGuest();