With AppKit, you can easily let people interact with multiple EVM and Solana compatible wallets and blockchains directly from your Unity game.
Install#
Let's get started by installing the AppKit package!
Prerequisites#
- Unity 2022.3 or above
- IL2CPP code stripping level: Minimal (or lower)
- Target platform: Android, iOS, Windows, macOS, WebGL
- Gamma color space
- If you need Linear color space, please open a GitHub issue
AppKit Package#
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:
- Open
Advanced Project Settingsfrom the gear ⚙ menu located at the top right of the Package Manager’s toolbar - Add a new scoped registry with the following details:
- Name:
OpenUPM - URL:
https://package.openupm.com - Scope(s):
com.reownandcom.nethereum
- Name:
- Press plus ➕ and then
Savebuttons - In the Package Manager windows open the add ➕ menu from the toolbar
- Select
Add package by name... - Enter the names of the following packages one by one:
com.nethereum.unitycom.reown.corecom.reown.core.cryptocom.reown.core.commoncom.reown.core.networkcom.reown.core.storagecom.reown.signcom.reown.sign.unitycom.reown.sign.nethereumcom.reown.sign.nethereum.unitycom.reown.appkit.unitycom.reown.unity.dependencies
- Press
Addbutton
If you encounter errors related to the com.unity.vectorgraphics package after installing AppKit,
please install it manually from the Package Manager. Click the plus ➕ button in the Package
Manager window, then select the Add package by name... option and enter
com.unity.vectorgraphics.
Configure#
The minimum configuration required is filling in a Project ID and Metadata fields inside of AppKitConfig.
Head over to Reown Dashboard and create a new project.
- projectId: The project ID is a unique identifier for your project.
- If you don't have a Project ID, you can create one at Reown Dashboard.).
- name: The project name is a human-readable name for your project.
- description: The project description is a human-readable description for your project.
- url: The project URL
- iconUrl: Icon of the project.
Implement#
- Add
Reown AppKitprefab fromPackages/Reown.AppKit.Unity/Prefabsto your scene. - Initialize AppKit from your script
- Connect account
Optional: Using Solana Unity SDK? You can keep using
Solana.Unity.SDK'sWeb3and route all signing through AppKit with our adapter. See the adapter section in Usage.
Examples and Test dApps#
Getting Support 🙋#
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!