To install AppKit package via OpenUPM, you need to have Node.js and openupm-cli installed. Once you have them installed, you can run the following commands:
Add Reown AppKit prefab from Packages/Reown.AppKit.Unity/Prefabs to your scene.
Initialize AppKit from your script
Copy
public async void Start(){ var config = new AppKitConfig(...); await AppKit.InitializeAsync(config);}
Connect account
Copy
public async Task ResumeSession(){ // Try to resume account connection from the last session var resumed = await AppKit.ConnectorController.TryResumeSessionAsync(); if (resumed) { // Continue to the game MyAccountConnectedHandler(); } else { // Connect account AppKit.AccountConnected += (_, e) => MyAccountConnectedHandler(); AppKit.OpenModal(); }}
Reown is committed to delivering the best developer experience.If you have any questions, feature requests, or bug reports, feel free to open an issue on GitHub!