This is a Unity template pre-configured with Okto SDK for building chain abstracted decentralized applications in Unity. It provides a solid foundation for creating Web3-enabled games and applications with best practices and essential tooling.
- 🎮 Unity Integration with Okto SDK
- 🔐 Web3 Functionality for blockchain interactions
- 👤 Authentication with Google Sign-In
- 💼 Wallet Management for crypto assets
- 🔄 Blockchain Interactions made simple
Before you begin, ensure you have the following installed:
- Unity 2021.3 LTS or later
- Okto API Keys:
clientPrivateKeyandclientSwa. Obtain these from the Okto Developer Dashboard. - Google OAuth Credentials for authentication
The template requires the following dependencies:
- Google Sign-In for Unity
- Play Services Resolver
- Newtonsoft.Json (Unity Package: "com.unity.nuget.newtonsoft-json": "3.0.2")
-
Clone this template:
git clone https://github.com/okto-hq/okto-sdkv2-unity-template-app.git cd okto-sdkv2-unity-template-app -
Open the project in Unity.
-
Install the required dependencies:
- Import the Google Sign-In for Unity package
- Import the Play Services Resolver package
- Add Newtonsoft.Json via the Unity Package Manager
-
Set up your credentials:
-
In
Login.cs, set your Google Web OAuth client ID:webClientId = "YOUR_GOOGLE_WEB_OAUTH_CLIENT_ID"
-
In
OktoClient.cs, set your Okto API credentials:clientPrivateKey = "YOUR_CLIENT_PRIVATE_KEY" clientSwa = "YOUR_CLIENT_SWA"
-
-
Run the project in the Unity Editor to test the functionality.
You can download and try the latest Android APK demo from the GitHub repository.
Contributions are welcome! Please take a moment to review our CONTRIBUTING.md guidelines before submitting any Pull Requests. Your contributions are invaluable to the Okto community.
For questions and support:
- Join our Discord Server
- Visit the Okto Documentation