Skip to content

๐Ÿ”— EVM blockchain SDK for Unity Game Developers. WebGL + MetaMask support with complete Nethereum integration for smart contracts, wallet connections, and Web3 gaming features.

License

Notifications You must be signed in to change notification settings

tomicz/unity-blockchain-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

48 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Blockchain for Unity

EVM blockchain SDK for Unity Game Developers. Currently supports WebGL builds with MetaMask wallet integration. Multiple platform support and additional wallet integrations are coming in future updates.

๐Ÿš€ Quick Start

// Add BlockchainManager to a GameObject
var manager = gameObject.AddComponent<BlockchainManager>();

// Connect to MetaMask
manager.ConnectWallet();

// Subscribe to events
manager.OnWalletConnected += (result) => Debug.Log($"Connected: {result.address}");
manager.OnBalanceReceived += (result) => Debug.Log($"Balance: {result.formattedBalance} {result.currencySymbol}");

โš™๏ธ Configuration

Configure your blockchain network through Unity Editor:

  1. Go to Tomicz Engineering > Chain Config
  2. Set your network name, chain ID, RPC URL, and currency symbol
  3. Click Update Config to save

โœจ Features

Core Features

  • Ethereum/EVM Chain Integration: Full support for Ethereum and EVM-compatible blockchains
  • MetaMask Wallet Integration: Seamless connection with MetaMask browser extension
  • WebGL Support: Optimized for Unity WebGL builds
  • Smart Contract Interaction: Complete Nethereum integration for contract calls and transactions
  • Configuration Management: Easy blockchain network configuration through Unity Editor

Technical Capabilities

  • Account Management: Wallet connection, account switching, and balance checking
  • Transaction Signing: Support for standard transactions and EIP-712 typed data signing
  • Multi-Chain Support: Ethereum, Optimism, Besu, Geth, and other EVM chains
  • HD Wallet Support: Hierarchical deterministic wallet functionality
  • Sign-In with Ethereum (SIWE): Web3 authentication capabilities

๐Ÿ“ Documentation

๐ŸŽฎ Examples Repository

For complete, ready-to-use examples demonstrating how to integrate blockchain functionality into Unity applications, check out our Unity Blockchain SDK Examples repository.

What's Included:

  • MetaMask Integration: Complete example with UI for connecting to MetaMask
  • Wallet Management: Connect, disconnect, and manage wallet connections
  • Balance Checking: Get and display wallet balances
  • Network Support: Support for multiple Ethereum networks
  • Real-time UI Updates: Automatic UI updates based on connection state
  • Configuration Examples: Network setup and RPC provider examples

Perfect for developers who want to see the plugin in action or need a starting point for their own implementations.

๐Ÿ› ๏ธ Installation

  1. Import the plugin into your Unity project
  2. Configure your network in Tomicz Engineering > Chain Config
  3. Add BlockchainManager to a GameObject
  4. Build for WebGL platform

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ“ž Support


Built with โค๏ธ by Tomicz Engineering

About

๐Ÿ”— EVM blockchain SDK for Unity Game Developers. WebGL + MetaMask support with complete Nethereum integration for smart contracts, wallet connections, and Web3 gaming features.

Resources

License

Stars

Watchers

Forks

Packages

No packages published