Aptos Unity SDK
The Aptos Unity SDK is a .NET implementation of the Aptos SDK, compatible with .NET Standard 2.0 and .NET 4.x for Unity. The goal of this SDK is to provide a set of tools for developers to build multi-platform applications (mobile, desktop, web, VR) using the Unity game engine and the Aptos blockchain infrastructure.
See the post Aptos Labs brings Web3 to Gaming with its new SDK for Unity developers and the Technical details section of the Unity SDK README for all of the features offered to game developers by the Aptos Unity SDK.
The Aptos Unity SDK supports these use cases:
- Progressive onboarding flow in which users can log into a game by email. In this flow, transactions are proxied, and Aptos uses a distributed key system. The users can then onboard to a full custodial wallet if desired.
- In-game non-custodial wallet integration in which game developers have the option to allow users to create full non-custodial wallets in the games.
- Off-game non-custodial wallet integration in which game developers may allow users to connect to a desktop wallet or a mobile wallet within the game or create burner wallets from the parent wallet seamlessly.
Supported Unity versions
As of Unity 2021.x.x, Newtonsoft Json is a common dependency. Prior versions of Unity require installing Newtonsoft.
- Microsoft.Extensions.Logging.Abstractions.1.0.0 — required by NBitcoin.7.0.22
Install the Unity SDK
You may install the Unity SDK either through our
unitypackage or the Unity Package Manager.
- Start Unity.
- Download the latest
Aptos.Unity.unitypackagefile from the Unity Asset Store.
- Click Assets → Import Packages → Custom Package and select the downloaded file.
Install by Unity Package Manager
- Open the Unity Package Manager window.
- Click the add + button in the top status bar.
- Select Add package from git URL from the dropdown menu.
- Enter the URL https://github.com/aptos-labs/Aptos-Unity-SDK.git and click Add.