Web3 Unity Multiplayer Playground
Introduction
This Moralis Unity Sample Project demonstrates Web3 functionality; authentication, send assets, fetch assets, & interacting with Solidity smartcontracts (read/write) on the Polygon Mumbai blockchain.
Intro | 4-Player Multiplayer |
---|
 |  |
Enter the multiplayer playground - an shared environment to move, trade currency, and trade NFTs
Video
Unity Multiplayer enables 2 or more players to share online experiences. Web3 is an evolution of the internet running on the blockchain. Together, we'll combine technologies to create a Web3 Unity Multiplayer Playground game with Polygon Mumbai.
Overview
Technology | Version |
---|
Unity | >= 2021.x |
Unity Multiplayer (Lobby, NGO, Relay) | >= 1.0.x |
Moralis SDK (NodeJS) | >= 2.x |
NodeJS | >= 16.9.0 |
Microsoft PlayFab (With Azure) | >= 220907 |
The Steps We Will Take
- Setup Unity
- Setup Backend
Setup Unity
- Download the sample project.
- Follow the README instructions.
Setup Backend
- Complete the Using Unity & PlayFab (NodeJS) tutorial. Exclude .NET steps.
- When adding Azure's Application Settings and PlayFab's Functions, use only the updated table information below.
Azure - Function App - Application Settings | Value |
---|
PLAYFAB_DEV_SECRET_KEY | (See Tutorial) |
PLAYFAB_TITLE_ID | (See Tutorial) |
MORALIS_API_KEY | (See Tutorial) |
PlayFab - Cloud Script - Functions | Value |
---|
ChallengeRequest | (Copy From VS Code) |
ChallengeVerify | (Copy From VS Code) |
GetNftsForContract | (Copy From VS Code) |
RunContractFunction | (Copy From VS Code) |