Web3 Game Developer in 2024 Roadmap: Unity, Smart Contracts, Connect a Wallet [Full Course]
Vložit
- čas přidán 28. 06. 2024
- Create the next big web3 game using thirdweb's Unity SDK. Connect your Unity to the blockchain with an easy to implement SDK. Onboard users by creating and connecting wallets, interact with popular smart contracts like ERC-20, ERC-721, and ERC-1155. Learn how to create and deploy your own smart contracts and use them within Unity. By the end of the course you'll have built a web3 game that you can enjoy on your desktop or browser
*Mumbai testnet support has been officially deprecated. Transition to the Amoy testnet for improved scalability and reduced gas fees.*
00:00 Unity web3 gaming course overview
05:00 What is web3 gaming and why blockchain technology?
10:40 Overview of endless runner example game
13:57 How to clone endless runner example game
16:57 Import and add thirdweb Unity SDK into Unity game
20:40 Prepare your web3 Unity game with Thirdweb Manager
27:43 Create a Connect Wallet button and connect web3 wallets
35:28 Connect with social logins and email with In-app wallets
41:49 Create an In-app wallet and account abstraction combination
48:40 Build you own custom connect wallet flow in Unity
01:03:45 Deploy your own ERC-20 smart contract
01:08:08 ERC-20: Claim tokens in Unity
01:19:41 ERC-20: Read and display balance data in Unity
01:28:23 Deploy an ERC-721 smart contract
01:33:24 ERC-721: Build a token-gated Unity game
01:48:44 Deploy an ERC-1155 smart contract
01:54:25 ERC-1155: Claim NFT achievements in Unity
02:06:20 ERC-1155: Read and display achievement data in Unity
02:13:15 Deploy a custom smart contract - Leaderboard contract
02:25:43 Custom smart contract: Submit scores on-chain and display ranking in Unity
02:39:23 ERC-20 Paymaster
02:47:27 Build and run Unity game: Desktop, Browser, and Mobile
02:58:25 Conclusion and overview of web3 gaming course
Take Flight full game demo: thirdweb-example.github.io/un...
GitHub Repo Links:
Example game (blockchain removed): github.com/thirdweb-example/u...
Take Flight (Full game):github.com/thirdweb-example/u...
ERC-20 Paymaster: No tutorial video yet. Coming soon!
Documentation Links:
thirdwen Unity docs: portal.thirdweb.com/unity
Smart Contracts:
ERC-20 (Token): thirdweb.com/thirdweb.eth/Tok...
ERC-721 (Open Edition): thirdweb.com/thirdweb.eth/Ope...
ERC-1155 (Edition Drop): thirdweb.com/thirdweb.eth/Dro...
Leaderboard Contract: thirdweb.com/0xEe29620D0c544F...
Other Links:
thirdweb API keys - thirdweb.com/dashboard/settings
Unity SDK - github.com/thirdweb-dev/unity...
Signature minting:
ERC-20: portal.thirdweb.com/unity/con...
ERC-721: portal.thirdweb.com/unity/con...
ERC-1155: portal.thirdweb.com/unity/con...
thirdweb Support: thirdweb.com/support
Join our Community of over 30,000 Web3 builders: / discord
thirdweb Official Site: thirdweb.com/dashboard
thirdweb Twitter: / thirdweb - Věda a technologie
This video is clear! It’s everything you would ever need to make a blockchain game in unity, absolutely awesome
Thank you! Glad you liked it!
This is the best video about Blockchain Unity Game.
Always support Thirdweb. You are the best.
🎉🎉🎉 very good timing for a game currently being made!
Hope you enjoy it! Excited to see what you build!
This's what I've been looking for ... tnkz.
Can’t wait to see what you build! Hope this course helps.
Please give any solution to the Invalid chain id issue when claiming the score or submitting the score.
thirdweb you are the best team!!!!❤❤❤
Thank you! ❤
Hi friends. How could you use ThirdWeb in the Contruct3 Engine or javascript game? Not every game dev uses Unity. Thanks.
Every time I try to make a claim using etherscan, I am asked to put an allow list proof (tuple) and I don’t know what I should put. Please Can anyone help?
와 이제 게임에 연동만 하면 되는군요 멋집니다
Thanks for your always very nice videos!
Question. I have finished up to Chapter 6, but the results of running ClaimTokenAndReword only reflect the results of either ClaimToken or ClaimReward. What is the problem with not reflecting both?
Any updates on the invalid chainId issue?
Please do a tutorial on building web3 on unreal with twitch (Twiworks) integration
How long before we have the ERC- 741 contract added to the prebuilt contract list?
@thirdweb_ Are you people going to give any solution for invalid chain id issue [Exception: Bundler Request Failed. Error: BadRequest - Invalid chain: 94 - {"error":"Invalid chain: 94","chain":"94"}]. You are not talking about this issue. Please don't suggest to input the correct chain id. identifier and chain id is correct. Tried with many other network chain. Same issue with all. Data are getting fetched nicely. But whenever I try to Claim, submit score to post my data up to the dashboard. It gives same error for all.
Hate to poke the bear, but by chance you figure this out?
Do you know if there is there an Unreal sdk in the works? or do i have to switch to Unity for crypto gaming?
Very nice
❤️❤️❤️
Thank you so much thirdweb , i have query that how can we display metadata like name and picture of an owned NFT from Erc1155 contract into our Unity game ?
You can get the data of an NFT with something like Get() (Docs: portal.thirdweb.com/unity/contracts/erc1155/erc1155)
You can also use some of the Prefabs available like NFTLoader or NFT to show your NFTs in game.
Thanks you so much thirdweb I am going to implement that in my Game
Can you utilize gdevelop features also?
I am getting Invalid Token : 4002 error while claiming token following "01:08:08 ERC-20: Claim tokens in Unity". Can you help me with that?
Exact Response is "{"error":"Invalid chain: 4002","chain":"4002"}"
So ran into this earlier today, by chance you figure anything out?
Is Account Abstraction and Smart Wallets supported on the Polygon Amoy Testnet with chain 80002? I'm trying to implement Account Abstraction. However after setting everything up, whenever I try to do something towards the blockchain (e.g claim tokens), I get an error message saying I'm using an invalid chain: 80002. Polygon Amoy Testnet is on chain 80002.
Did you solve this issue? Or found a wayaround?
@@PankajKumar-tu8gs yeah I sent them an email addressing the issue. After 1 week, I got a reply saying they had fixed the issue, so Account Abstraction now works on the Polygon Amoy Testnet. I can confirm👌
@@PankajKumar-tu8gs Account Abstraction is now supported for Polygon Amoy Testnet. Can confirm!
Thank you man. But I have a question that If players cheat on the client side to claim the NFT, How can we protect the value of the NFT?Shouldn't we put the game always on the servers?
Yers in production you should and you can utilize features like signature minting to make sure your NFT can't just be claimed by anyone. Docs: portal.thirdweb.com/unity/contracts/erc721/erc721signaturemintable
Thanks@@thirdweb_
@@thirdweb_ Is there any use case where you would use e.g. `contract.ERC721.Signature.Generate` in Unity on production? Wouldn't you always want to do that in the backend? If that's the case, why did you do the work of adding it to the Unity SDK?
HYPE
Let’s go!
just wanna know does it work for mobile unity like android or ios?
Yes, Unity SDK works for mobile builds 👍
Does it work?
Game works and there is a demo in the description if you would like to try it.
sorry but where is game owner panel ? how we can make money with building web3 game ??? im confiused !!!
This tutorial shows you how to implement web3 components and features into a Unity game. We do not cover anything with making money or the business of the gaming.