An open API service indexing awesome lists of open source software.

https://github.com/dappsar/unity-web3-chainsafe-onlylogin

A Simple Unity App with wseb3 Login that use ChainSafe SDK
https://github.com/dappsar/unity-web3-chainsafe-onlylogin

blockchain chainsafe csharp docker docker-compose metamask unity3d walletconnect web3

Last synced: 2 months ago
JSON representation

A Simple Unity App with wseb3 Login that use ChainSafe SDK

Awesome Lists containing this project

README

          

![unity](https://img.shields.io/badge/unity-informational?style=flat&logo=unity&logoColor=white&color=6aa6f8)
![csharp](https://img.shields.io/badge/csharp-informational?style=flat&logo=csharp&logoColor=white&color=6aa6f8)
![web3](https://img.shields.io/badge/web3-informational?style=flat&logo=web3&logoColor=white&color=6aa6f8)
![blockchain](https://img.shields.io/badge/blockchain-informational?style=flat&logo=blockchain&logoColor=white&color=6aa6f8)
![chainsafe](https://img.shields.io/badge/chainsafe-informational?style=flat&logo=chainsafe&logoColor=white&color=6aa6f8)

# Demo Unity App with Web3 Login

## Introduction

A simple demo to show a Web3 Login developed with [chainSafe SDK for Unity](https://github.com/ChainSafe/web3.unity).

![wallets](./.doc/images/wallets.png)

![demo](./.doc/media/demo.gif)

## Technology Stack & Tools

- [Unity](https://unity.com/)
- [Web3](https://en.wikipedia.org/wiki/Web3)
- [C#](https://learn.microsoft.com/es-es/dotnet/csharp/)
- [ChainSafe SDK for Unity](https://github.com/ChainSafe/web3.unity)

## Requirements For Initial Setup

- [Unity Hub](https://unity.com/download)
- [Docker](https://docs.docker.com/engine/install/)
- [Docker-compose](https://docs.docker.com/compose/)

## Setting Up

### 1. Clone/Download the Repository

`$ git clone repo_url`

### 2. Open in Unity

- Open folder in Unity (tested in Unity Editor **2022.2.7f1**).
- Build or Build and Run!.

### 3. Run Release

1. Download release from [here](https://github.com/dappsar/unity-web3-chainsafe-onlylogin/releases/download/v1.0.0/release-v1.0.0.zip)

2. Unzip release in root folder:

![release image](./.doc/images/release.png)

3. Execute this command to build container wtih script:

`$ ./build.sh -n web3-demo -p8120 -d .`

Notes:
- _web3-demo_: It is the container name.
- _'.'_: It indicates the sub-folder within the 'Builds' folder that contains the build files. Assumes the files are in the root of builds folder.



Another option, use docker-compose:

`$ docker-compose up -d`

4. Open browser in: http://localhost:8120

---

## References

- [ChainSafe Web3 Unity SDK](https://docs.gaming.chainsafe.io/)
- [Unity Engine + MetaMask Wallet](https://medium.com/coinmonks/unity-engine-metamask-wallet-6797d4699e45)
- [Chainsafe Gaming SDK - Making Blockchain Games Plug & Play](https://www.youtube.com/watch?v=qa2TatYgvYs)
- [ChainSafe Registration Project Site](https://dashboard.gaming.chainsafe.io/)
- [Goerli Faucet](https://goerli-faucet.pk910.de/)