Skip to main content

Prequisites to building a marketplace in Unity

This tutorial series covers the more advanced topics of building a marketplace in Unity on Immutable zkEVM.

There are several prerequisites you need to be familiar with before you can start building a marketplace in Unity.
Build a marketplace in UnityBuild a marketplace in Unity
💡Advanced Tutorial
If you're not familiar with the basic concepts such as authenticating players, connecting their wallets and using NFTs in your game, we recommend you start with the Build a Game in Unity tutorial before attempting to build a marketplace.

This tutorial series assumes you already know how to develop games with Unity, including creating and managing scenes, working with game objects, and basic scripting in C#.

You should already be familiar with the Immutable Unity SDK. If you're you haven't used our SDK before you can find more information in the Unity SDK documentation including the Unity SDK Reference.

You will also need to have a game registered in the Immutable Hub. If you haven't already done this, you can find the steps in the Build a game with Unity tutorial.

Prerequisites

PrerequisiteDescription
Unity VersionUnity 2021.3.26f1 is the version used to build the sample game.
Active Unity LicenseA free personal license can be used.
Immutable Hub AccountAn account on Immutable Hub is required to manage projects, create a Passport client, register your game and deploy your NFT collections.
Registered ProjectA project registered in the Immutable Hub for your sample game if you haven't already.
Deployed ContractsThe NFT & ERC-20 contracts required by the sample game if you haven't already.
Link Contracts to ProjectYou must link all relevant game contracts to the Immutable Hub project, enabling pre-approved transactions. For detailed instructions, see this guide on enabling pre-approved transactions.

Required packages

To build the marketplace functionality in this tutorial, you will need to install the following packages.

PackageDescription
Immutable Unity OrderbookThe Unity Orderbook package allows you to create, cancel, and execute orders.
Immutable Unity zkEVM APIThe Unity zkEVM API package allows you to interact with Immutable zkEVM APIs to display NFT inventories and marketplace listings, as well as search for NFTs based on their attributes.

💡Additional prerequisites
Each required package may have it's own prerequisites. For example, to use the Orderbook package, you must also install the Unity Passport Package. Please refer to each required package's setup documentation for more information.

Next steps

Once you've installed these prerequisites you're ready to get started building a marketplace in Unity by displaying the player's NFT inventory. Click next below to continue the tutorial series.