Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Nethereum/Nethereum.Unity.Webgl
Nethereum Unity Webgl sample starter (Currently using Metamask)
https://github.com/Nethereum/Nethereum.Unity.Webgl
Last synced: 3 months ago
JSON representation
Nethereum Unity Webgl sample starter (Currently using Metamask)
- Host: GitHub
- URL: https://github.com/Nethereum/Nethereum.Unity.Webgl
- Owner: Nethereum
- License: mit
- Created: 2022-01-10T15:39:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T10:24:06.000Z (7 months ago)
- Last Synced: 2024-05-29T22:09:39.963Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 78.7 MB
- Stars: 23
- Watchers: 5
- Forks: 12
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nethereum.Unity.Webgl
Nethereum Unity Webgl sample starterExample on how to integrate a WebGl unity project with Metamask, Deploy an ERC721 smartcontract (NFT) and interact with the smart contract minting a token and retrieving the asset (image) associated with it.
![MMUnity2021 gif](https://user-images.githubusercontent.com/562371/148795418-d09438d0-5857-4dfc-92af-3a3b025f8c22.gif)
## Notes
+ Entry point is the Metamask Controller: https://github.com/Nethereum/Nethereum.Unity.Webgl/blob/main/Assets/MetamaskController.cs
+ Only supported in 2021 and above due to emscripten
+ If creating a custom index.html file, the script needs to instantiate ```nethereumUnityInstance``` as per the example here:
https://github.com/Nethereum/Nethereum.Unity.Webgl/blob/main/WebGl/index.html#L111
+ This example uses coroutines only, if you want to use Web3 / Tasks check the main template https://github.com/Nethereum/Unity3dSampleTemplate, that uses the WebGLThreadingPatcher https://github.com/VolodymyrBS/WebGLThreadingPatcher, or any other way to enable wasm with Task threading support.## Future thoughts, next steps:
+ Include in the sample WalletConnect, probably using a submodule to provide the integration guidelines.
+ Same example using Web3 / Tasks