npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

com.trilitech.tezos-unity-sdk

v2.0.7

Published

Unity SDK for Tezos

Downloads

31

Readme

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 unitypackage file

You can install TezosUnitySdk via .unitypackage file. To load a package from a unitypackage file:

  • Go to Releases page and download the latest TezosUnitySdk.unitypackage.
  • Open your project in Unity Editor.
  • Double-click the TezosUnitySdk.unitypackage file to import it into the current project.

Install from a Git URL

You 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.Z
    • Please note that the version X.Y.Z 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.Z 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.Z",
    ...
  }
}
  • Switch back to the Unity Editor and wait for it to finish importing the added package.

WebGL Support

  • Open Unity Editor.
  • Navigate to Packages and find the Tezos Unity SDK.
  • Go to WebGLFrontend/output and copy the StreamingAssets and WebGLTemplates folders.
  • Navigate to the Assets folder of your project and paste copied folders.
  • This action will create WebGL template folders for your project. Each template is a subfolder within the WebGLTemplates folder. Each template subfolder contains an index.html file along with any other resources the page needs, such as images or stylesheets. You can choose the appropriate template to use in the WebGL build in Project settings/Player/Web tab/Resolution and Presentation
  • By default, unfortunately, Web builds didn't support copy-and-paste operations. To handle them properly, install with double-clicking WebGLFrontend/output/WebGLCopyAndPaste.unitypackage, this action will create WebGLCopyAndPaste alongside with StreamingAssets and WebGLTemplates folders inside your project Assets directory.

Mobiles Support

If you are using SDK on mobile platforms (IOS or Android) you need to build your project with Disabled Managed Stripping Level, otherwise you may encounter assembly errors.

To do this:

  • Open Project settings.
  • Navigate to Player tab.
  • Chose platform-specific settings (Android or IOS).
  • Make sure that Managed Stripping Level is disabled. (It's in optimization section)

📝 Read the documentation.