The user profile module is used to store user specific data related to his identity.
UserProfileData
userId (string): Unique READYgg ID for a user. Authenticated user has the same ID accross applications using READYgg.
email (string): Email of the authenticated user.
displayName (string): Authenticated user share the same display name accross applications using READYgg.
profilePicture : Authenticated user share the same profile picture accross applications using READYgg.
bio (string): Authenticated user share the same bio accross applications using READYgg.
Get User Profile
Update UserName/Display Name
Update User Bio
Get User Currencies
"rgn-coin" Currency
Similar to other in-game currencies but it can only be obtained by making In-App Purchases - it cannot be earned or given as a reward to players. It is consumed to purchase NFT #virtual-items.
For more details about the rgn-coin, please refer to the Currency module.
User Profile
Integration Guide
Unity
Unity integration
Introduction
The user profile module is used to store user specific data related to his identity.
UserProfileData
userId (string): Unique READYgg ID for a user. Authenticated user has the same ID accross applications using READYgg.
email (string): Email of the authenticated user.
displayName (string): Authenticated user share the same display name accross applications using READYgg.
profilePicture (userProfilePicture): Authenticated user share the same profile picture accross applications using READYgg.
bio (string): Authenticated user share the same bio accross applications using READYgg.
currencies (List<Currency>): Contains all the currencies user collected for your application.
UserProfileData class methods
GetRGNCoinBalance();
Return the amount of rgn-coin for this user.
GetCustomCoinBalance(string currencyName);
Return the amount of your custom currency for this user.
usingUnityEngine;usingRGN.Modules.UserProfile;publicclassUserProfileExamples:MonoBehaviour{privateasyncvoidUpdateDisplayName() {string newDisplayName =awaitUserProfileModule.I.SetDisplayNameAsync("New display name");Debug.Log($"Display name : {newDisplayName}"); }}
Update User Bio
usingUnityEngine;usingRGN.Modules.UserProfile;publicclassUserProfileExamples:MonoBehaviour{privateasyncvoidUpdateUserBio() {string newBio =awaitUserProfileModule.I.SetBioAsync("This is my user description");Debug.Log($"Bio : {newBio}"); }}
Similar to other in-game currencies but it can only be obtained by making In-App Purchases - it cannot be earned or given as a reward to players. It is consumed to purchase NFT #virtual-items.
For more details about the rgn-coin, please refer to the Currency module.