【区块链 | Unity3D】区块链中的游戏开发中如何连接以太坊,如何操作智能合约

Nethereum.Unity 库是一个特定于 Nethereum 的 Unity 库和 API,它支持 UnityWebRequest 使用 RPC over Http 与 Ethereum 交互。Nethereum.Unity 库是唯一支持在 Unity 中使用协程时使用 IEnumerator 和 yield 的库。

在这里插入图片描述

1、Nethereum.Unity 简介

如果想在 net461 /netstandard 中使用 async /await 和 Tasks,只要你的环境不需要使用 UnityWebRequest 而不是 HttpRequest,也可以使用与 “vanilla” Nethereum 相同的方式。(Webgl 需要使用 UnityWebRequest)。Nethereum 还为 net351 和 net461 框架构建提供了 AoT 库。所有 “dll” 都可以从 Nethereum github 下载。

flappy eth 是 Unity3d 的 “flappy” 示例,使用 Nethereum 作为 webgl dapp 游戏转换为与 Ethereum、Infura 和 Metamask 交互。主要集成组件的源代码可以在

猜你喜欢

转载自blog.csdn.net/qq_28505809/article/details/125050980
今日推荐