Connect Metamask to Unity WebGL
HTML-код
- Опубликовано: 20 авг 2024
- Connect your crypto wallet (metamask) to a unity webgl project. From there, you can fetch the user's NFTs (non fungible token) as a game asset.
SDK: github.com/Cha...
Discord: / discord Наука
_Config.Account isn't available for the new link in your description
hey, please check out or documentation which is up to date. We'll update the videos chainsafe.github.io/game-docs/
In short, use string account = PlayerPrefs.GetString("Account");
Awesome! Thank you for this!
Where can we get the unity sdk for this?
sorry for the delay. It's out now! github.com/ChainSafe/web3.unity
how can i connect directly to metamask instead of having to choose a wallet?
the news SDK should have that by default. cheers
I gor errors
Localhost says
An error occurred running the unity content on this page see your browser javascrip
login to get wallet id, but the wallet address is returned to all lowercase letters. How to get the correct wallet id?
What if I want it connect only to MATIC network? how to do it?
It's in our documentation. for more detailed answers, feel free to join the discord gaming.chainsafe.io/
please explain me this that how i can earn that coin by playing game?? i don't know if this is a lame question but please explain me
Can it work without build? i mean can we call metamask to show in editor?
The type or namespace name 'Newtonsoft' could not be found . Unity 2021.2.12f1
ah. I know the answer. feel free to join our discord for the answer gaming.chainsafe.io/
This is awesome.
Hello budy, how are you? How can I make the account balance appear on the screen as well?
yes, please check out the docs gaming.chainsafe.io/
Hi! I'm getting this error: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
What should I do?
hey, for technical question, feel free to join the discord. We can help there
Hi. I have a one question.
In the Script. the "_Config.Account" code error in the windows os. can you give me a solution?
This video is outdated. here's the update link gaming.chainsafe.io/
more specific answer docs.gaming.chainsafe.io/#player-account
How do I use this in unity? I get an error of "web3 not defined." I'm sure there are dependencies that need to be installed, however, I have tried through npm install and it didn't work. I installed web3 to the packages folder, but I don't know what to do next.
oh I see now I need the sdk lol
The version in the Unity Asset store is a little bit different...do you have the updated one available?
sorry for the delay. It's out now github.com/ChainSafe/web3.unity
make collecting nfts game it will be wow
Build a metaverse bruhh