Build a blockchain game with Unity - Getting Started with Unity SDK
Vložit
- čas přidán 7. 07. 2024
- In this video, we'll get started with thirdweb's Unity SDK. We cover how to setup your Unity projects with the SDK and how to use some of the basic components to start interacting with the blockchain through your game.
Unity SDK docs: portal.thirdweb.com/unity
ERC4337 (Smart Wallet): • How to create an ERC43...
thirdweb Docs: portal.thirdweb.com/
Join our Community of over 30,000 Web3 builders: / discord
thirdweb Official Site: thirdweb.com/dashboard
thirdweb Twitter: / thirdweb
Timestamps:
00:00 Introduction
00:53 Setup Unity project and SDK
03:03 ThirdwebManager
07:12 Setup Connect Wallet
12:15 Metamask, Coinbase, WalletConnect, and Local Wallet
14:17 Setup Email Wallet (Paper)
16:18 Read connected wallet address
21:05 Read data from smart contracts
25:35 Execute function from smart contract
28:30 Setup gasless transactions
36:05 Build your Unity game (WebGL and native)
38:48 Conclusion - Věda a technologie
I love watching and learning your shows
Thanks for the support!
This is super cool! I‘m currently using thirdweb to work on a project and it’s going great, thanks for the tutorials.
Great to hear!
Can't find the gassless transaction code in your description
Really interesting video, but I can't help but notice that the more updated version of the third web SDK doesn't include all the options for the third web Manager (Script), as seen 6 minutes into the video.
Awesome Job
Good one bro, I expect to see a blockchain game with blind box nfts , rarities and so on.
Thank you! We have some tutorials and guides on loot boxes you can check out.
Hi there! When trying to connect to a an injected browser wallet (using v3.3.0, Unity 2022.3.5f1), I get an error stating "This wallet connection method is not supported on this platform!". When trying to connect using metamask I get the QR code with the open deep link that sends me to the metamask extension (which is already installed). How would the player actually paste his address? I tried desktop and webgl platform. Testing with Paper (email) works correctly. Thanks!
Greetings, I don't see the code linked for openzepplin to charge the gas, the one that goes by the default code please
How do I switch to other metamask wallet when I have already connected one?
Currently I only able to logout wallet, but when I connect through metamask again it's connecting to my previous connected metamask wallet.
How to connect to other metamask wallet?
What happens when you set up a game with gassless transactions and the contract runs out of gas? Does the user get a message saying the contract is out of gas and is there a second option where they can choose to then pay the gas fee?
If the relayer runs out of funds the transactions will not go through and the contract will need to be filled again. Error will show that there was not enough gas to complete the transaction.
Can u create a video for connect desktop metamask wallet in unity ?
I got "TypeError cannot read properties of undefined (reading 'initialize')" when i build and run on WebGL. How do i solve this?
Hello, why have I been waiting for the Unity QR code to be scanned using the metamaskAPP on my phone and unable to connect
Hey there !
Great video !
Is there a way to send a specific NFT token ID from a 721 collection or does it necessarily have to be incremental ?
Thanks !
If the NFT is already minted you can transfer a specific toked ID. If not the tokens will mint in sequential order.
hi, i got a message about api keys. I don't get it, does this affect everyone? You can release a video on CZcams how to do it. I have an app, I don't want it to stop working.
We will be working on a video going over the new API keys and getting it setup with your projects 👍
Hi, where is the relayer gassless script? i cant find it anywhere
How delete UI elements another wallets? From inspector it’s not working:(
Can we make purchases with USDT from the game we made with Unity? So is there a compatible sdk etc between unity and usdt?
On the contract you can set payment to any ERC20 of your choice in 'Claim Conditions'
could you do this with for solana ?what would we have to change ?
This does not support Solana.
When I try to deploy smart contract, it ask for API secret key in terminal, what should I do ?
You will need to generate an API key through thirdweb to get a secret key. This video here is a guide on how to do that: czcams.com/video/G3bvXfE-OMg/video.html
Would it run on webgl build
Yes, Unity SDK work with webgl and mobile builds.
Hey, Is it still working?
Yes the Unity SDK is still working.
Another ethereum chain only project ?
Ue4 please 😮
Unreal Engine SDK is in our pipeline of future projects 👍
Thank you for the tutorials but i believe that best option for gaming and web 3 is unreal engine so this tool must support unreal engine 5 🤍
Unreal Engine SDK is in our pipeline of future projects. Currently only Unity SDK 👍
Why do you believe that?
@@ZakkFromSource Unity may be better for beginners, but unreal engine is better for the gaming industry in general in terms of quality and features. I tried both and found that unreal engine provided me with a better work environment that allowed me to be more creative in my project. For this reason, I think everyone should focus on unreal engine, and finally this is just an opinion. I could be wrong
@@thirdweb_ If you release an SDK for UE5, then I would love to buy it on the marketplace, I think, like many other developers.
Can't find the gassless transaction code in your description.