Skip to content

Web3 Gaming Development with Truffle and Unity

Unity x Truffle Banner

We're so excited you're taking your first steps into developing web3 games with Unity and the Truffle Suite. There are only a few tools you need to get started:

  • Unity: To create the game itself, we're going to need a game engine. There are many out there, but for full-length 3D games the 2 main engines are Unity and Unreal Engine. We'll be using Unity here since it's easier to pick up and supports C#, which already has an Ethereum library, NEthereum.
  • Truffle CLI: Truffle CLI manages the lifecycle of our smart contracts. It handles compiling our Solidity and producing artifact files, JSON files which contain the function signatures for a given contract (among other things). We'll ingest these artifacts using the MetaMask SDK and NEtherem so we can interact with our smart contracts.
  • NEthereum: NEthereum allows us to interact with the Ethereum blockchain more conveniently than making raw RPC calls. NEthereum, combined with the MetaMask SDK, will let our users interact with the smart contracts powering our game.

Consensys has a number of tools in the Unity asset store that will help you create any web3 gaming experience you can imagine. Another one you may want to check out is the Infura Unity SDK. This allows you to quickly work with NFTs; querying collections, minting new NFTs, transferring them and more, without doing any smart contract development!

If you want to see a full walkthrough of building a Tic Tac Toe game, see our Truffle x Unity tutorial!


With the above tools installed, check out these guides that will help you get familiar with NFT development, a very popular crypto primitive to combine with games. NFT could host things like skins, game assets, or a player's inventory for later trading or other functionality on-chain.

Want updates on the newest web3 gaming tools and techniques? Join our Early Adopter Program to work with our team and community to learn more about web3 gaming and design the best features to bring your game to the next!