Skip to content

mismirnov/tezos-unity-sdk

Repository files navigation

Tezos Unity SDK

Tezos SDK for Unity

Intro Issues License

The Tezos Unity SDK invites developers to discover the future of Web3 gaming with a complete kit that empowers game developers with the ability to:

  • Connect to a Tezos wallet
  • Utilize data on the blockchain
  • Call smart contracts
  • True ownership of in-game assets

The Tezos SDK supports Desktop, Android, iOS and browsers. Beyond allowing game developers to interact with the Tezos blockchain, this SDK is a helpful resource for developing any Tezos decentralized application (dApp).

Install from a Git URL

Yoy can install the UPM package via directly Git URL. To load a package from a Git URL:

  • Open Unity Package Manager window.
  • Click the add + button in the status bar.
  • The options for adding packages appear.
  • Select Add package from git URL from the add menu. A text box and an Add button appear.
  • Enter the https://github.com/trilitech/tezos-unity-sdk.git Git URL in the text box and click Add.
  • You may also install a specific package version by using the URL with the specified version.
    • https://github.com/trilitech/tezos-unity-sdk.git#X.Y
    • Please note that the version X.Y stated here is to be replaced with the version you would like to get.
    • You can find all the available releases here.
    • The latest available release version is Last Release

For more information about what protocols Unity supports, see Git URLs.

Install from NPM

  • Navigate to the Packages directory of your project.
  • Adjust the project manifest file manifest.json in a text editor.
  • Ensure https://registry.npmjs.org/ is part of scopedRegistries.
    • Ensure com.trilitech is part of scopes.
    • Add com.trilitech.tezos-unity-sdk to the dependencies, stating the latest version.

A minimal example ends up looking like this. Please note that the version X.Y stated here is to be replaced with the latest released version which is currently NPM Package.

{
  "scopedRegistries": [
    {
      "name": "npmjs",
      "url": "https://registry.npmjs.org/",
      "scopes": [
        "com.trilitech"
      ]
    }
  ],
  "dependencies": {
    "com.trilitech.tezos-unity-sdk": "X.Y",
    ...
  }
}
  • Switch back to the Unity Editor and wait for it to finish importing the added package.

📝 Read the documentation.