After downloading Unity, you can install the Unity SDK to get everything you need to connect to the chain.

  • Open Unity Package Manager window.
  • Click the add + button in the status bar.
  • Select Add package from git URL from the add menu. A text box and an Add button appear.
  • Copy-paste the https://github.com/magicblock-labs/Solana.Unity-SDK.git git URL in the text box and click Add.
  • Once the package is installed, in the Package Manager inspector you will have Samples. Click on Import

You can now access to

  • Wallets - In-game, Solana Wallet Adapter (web/mobile) and Web3auth authentication.
  • Solana.Unity.Core which provides all the utils for transaction building and RPC
  • Several native protocols integrations (i.e. Orca swaps, Metaplex NFT…)