Matrix Multichain Unity ToolKit

Matrix Multichain Unity ToolKit

Multichain Unity Toolkit is a set of packages created to help game developers integrate Web3 APIs with Unity 3D WebGL Builds.

Matrix Multichain Unity ToolKit

Matrix Multichain Unity ToolKit

Multichain Unity Toolkit is a set of packages created to help game developers integrate Web3 APIs with Unity 3D WebGL Builds.

The problem Matrix Multichain Unity ToolKit solves

With the help of our Unity Toolkit, the dApps related to gaming and 3D graphics can be easily built. The development process can be largely shortened. We act as a bridge between traditional Unity 3D and blockchain environment.

We can offer the following features to developers:

  • Help integrate WebGL Unity 3D build with Web
  • Provide a framework and a standard UI for integrating Web 3 Auth for wallets such as Ethereum, Flow, Aptos, and Sui
  • Provide a package for Unity 3D and React
  • Customizable UI and APIs for easy Web3 integration
  • API for signing messages, transactions and interactions with smart contracts
  • Easily extend the package to integrate more wallets and blockchains

By using matrix multichain unity tookit:

  • A game developer should be able to integrate the package provided to add Web support to the non-Web3 game
  • A game developer should be able to make use of the provided sample UI for integrating Web3 authentication in Unity3D games
  • A game developer should not be required to modify React code as It should be plug-and-play
  • A game developer should be able to make use of the provided API for connecting a wallet, carrying out transactions, and fetching wallet balance

Besides, we are multichain-supported, which means we have better scalability. Theoretically, we can serve the blockchain game developers from all public chain ecosystem. Developers can easily migrate their product from one chain to another using our unified and standardized toolkit

Challenges we ran into

To be honest, we are a mature team with extensive projest development experience and solid technical skills. So we didn't really struggle much.
While developing the toolkit, one of the issue we faced was that the internally used package in React, react-unity-webgl, would lose context on component changes and its a major issue since then React to Unity communication was not working with event emitters. This was solved after long hours of research where we stored the unity context at a global level and to use that instead.
Another challenge we solved was about building a unified interface especially when it comes to multichain applications. We designed our own communication protocol, where we can set time outs for API calls so that the game can be aware about the whereabouts of web3 state and can have a really good experience. Our toolkit throws events such as success and failure, with the data which can be parsed in C# inside Unity.

Discussion