Skip to content

okto-hq/okto-sdkv2-unity-template-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Okto SDK Unity Template

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.

Features

  • 🎮 Unity Integration with Okto SDK
  • 🔐 Web3 Functionality for blockchain interactions
  • 👤 Authentication with Google Sign-In
  • 💼 Wallet Management for crypto assets
  • 🔄 Blockchain Interactions made simple

Prerequisites

Before you begin, ensure you have the following installed:

  • Unity 2021.3 LTS or later
  • Okto API Keys: clientPrivateKey and clientSwa. Obtain these from the Okto Developer Dashboard.
  • Google OAuth Credentials for authentication

Required Dependencies

The template requires the following dependencies:

Getting Started

  1. Clone this template:

    git clone https://github.com/okto-hq/okto-sdkv2-unity-template-app.git
    cd okto-sdkv2-unity-template-app
  2. Open the project in Unity.

  3. 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
  4. 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"
  5. Run the project in the Unity Editor to test the functionality.

Demo

You can download and try the latest Android APK demo from the GitHub repository.

Learn More

Contributing

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.

Support

For questions and support:

About

This is a template repo for users to understand the functionality and usage of Okto SDK for Unity dapps

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •