🔐
Account Management
Integrate account management seamlessly
Each time a ConnectAccount method is called, we fetch automatically the Emotes associated with the given userID.
You need to create a unique and immutable _UserId for each one of your user. You can for example use the UserID of the distribution's platform, but it can be any unique chain of character of your choice.
If you integrated our optional UI Package, the UI will automatically ask the Core Package to get the User's Emotes, and then refresh the inventory of the users with the Emotes available for this userID.
Each time an user logs in with their email or username in your game, call:
KinetixCore.Account.ConnectAccount(string _UserId, Action _OnSuccess = null, Action _OnFailure = null);
And each time an user logs out:
KinetixCore.Account.DisconnectAccount();
The account module of our SDK only accept one user at the time. Any attempt to log in another user will disconnect the previous one.
You can also retrieve manually the user's emotes through the API of the core package via this method :
KinetixCore.Metadata.GetUserAnimationMetadatas(Action<AnimationMetadata[]>
_Callback);
Last modified 15d ago