Nethereum.Unity
NuGet:
Nethereum.Unity| Source:src/Nethereum.Unity/
Nethereum.Unity
Unity game engine integration for Nethereum. Provides coroutine-based and async request patterns compatible with Unity's single-threaded execution model, plus utilities for IPFS and WebGL wallet connectivity.
Key Components
| Class | Purpose |
|---|---|
IpfsUrlService | Converts IPFS URIs (ipfs://...) to HTTP gateway URLs for fetching NFT metadata and assets |
Unity-Compatible RPC
Nethereum.Unity wraps the standard Nethereum RPC layer into Unity-friendly coroutine requests that work within MonoBehaviour update loops and WebGL builds.
Setup
- Import the Nethereum Unity package (compiled DLLs are in
src/compiledlibraries/net472UnityCommonAOT/) - Reference
Nethereum.Unity.dlland its dependencies in your Unity project - For WebGL wallet integration, also add Nethereum.Unity.Metamask or Nethereum.Unity.EIP6963
Relationship to Other Packages
- Nethereum.Unity.Metamask — MetaMask integration for Unity WebGL
- Nethereum.Unity.EIP6963 — EIP-6963 multi-wallet discovery for Unity WebGL
- Nethereum.Web3 — Core Ethereum interaction (used under the hood)