Skip to main content

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

ClassPurpose
IpfsUrlServiceConverts 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

  1. Import the Nethereum Unity package (compiled DLLs are in src/compiledlibraries/net472UnityCommonAOT/)
  2. Reference Nethereum.Unity.dll and its dependencies in your Unity project
  3. For WebGL wallet integration, also add Nethereum.Unity.Metamask or Nethereum.Unity.EIP6963

Relationship to Other Packages