ModifyProfile [Player Network SDK Only]
[Player Network SDK Only] Modify user profile.
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS, Windows
platform.Supports
Android, iOS, Windows
platform.Function Definition
- Unity
- Unreal Engine
void ModifyProfile(GUAAccountProfile profileJson);
static void ModifyProfile(const GUAAccountProfile &profile);
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
profile | GUAAccountProfile | Personal information, such as user name, birthday, and more |
Parameter | Type | Description |
---|---|---|
userProfile | GUAAccountProfile | Personal information, such as user name, birthday, and more |
Callback Processing
The callback processing API is GUAAccountResultObservers. The callback data structure is GUAAccountResult.
- Unity
- Unreal Engine
The callback event is AccountEvents.
The callback methodID is GUA_ACCOUNT_MODIFY_PROFILE
.
The callback event is OnAccountResultNotify.
The callback methodID is kMethodIDAccountModifyProfile
.
Code Sample
- Unity
- Unreal Engine
GUAAccountProfile accountProfile = new GUAAccountProfile();
// TODO: Set accountProfile
UnionAdapterAPI.GetAccountService().ModifyProfile(accountProfile);
GUA_NAMESPACE::GUAAccountProfile AccountProfile;
// TODO: Set AccountProfile
GUA_NAMESPACE::GUAAccountService::ModifyProfile(AccountProfile);