Build a blockchain game with Unity - Getting Started with Unity SDK

Sdílet
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

Komentáře • 45

  • @berrymanbrendon
    @berrymanbrendon Před 11 měsíci

    I love watching and learning your shows

  • @teawa_
    @teawa_ Před 11 měsíci

    This is super cool! I‘m currently using thirdweb to work on a project and it’s going great, thanks for the tutorials.

  • @ZGamesStudio
    @ZGamesStudio Před 11 měsíci +3

    Can't find the gassless transaction code in your description

  • @AscendingPilot
    @AscendingPilot Před 5 měsíci +3

    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.

  • @DBernardOfficial
    @DBernardOfficial Před 9 měsíci

    Awesome Job

  • @gsdealer7691
    @gsdealer7691 Před 11 měsíci

    Good one bro, I expect to see a blockchain game with blind box nfts , rarities and so on.

    • @thirdweb_
      @thirdweb_  Před 11 měsíci +1

      Thank you! We have some tutorials and guides on loot boxes you can check out.

  • @pascalb5908
    @pascalb5908 Před 9 měsíci

    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!

  • @TecnoCriptoNft21
    @TecnoCriptoNft21 Před 5 měsíci

    Greetings, I don't see the code linked for openzepplin to charge the gas, the one that goes by the default code please

  • @WoobyHob
    @WoobyHob Před 11 měsíci

    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?

  • @tyebeach
    @tyebeach Před 11 měsíci

    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?

    • @thirdweb_
      @thirdweb_  Před 11 měsíci

      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.

  • @user-vo1he9ik8r
    @user-vo1he9ik8r Před 8 měsíci

    Can u create a video for connect desktop metamask wallet in unity ?

  • @user-oh9uq8it5n
    @user-oh9uq8it5n Před měsícem

    I got "TypeError cannot read properties of undefined (reading 'initialize')" when i build and run on WebGL. How do i solve this?

  • @user-su1fq8mj1f
    @user-su1fq8mj1f Před 5 měsíci

    Hello, why have I been waiting for the Unity QR code to be scanned using the metamaskAPP on my phone and unable to connect

  • @kalash9114
    @kalash9114 Před 2 měsíci

    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 !

    • @thirdweb_
      @thirdweb_  Před 2 měsíci

      If the NFT is already minted you can transfer a specific toked ID. If not the tokens will mint in sequential order.

  • @remtexniki
    @remtexniki Před 11 měsíci +1

    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.

    • @thirdweb_
      @thirdweb_  Před 11 měsíci

      We will be working on a video going over the new API keys and getting it setup with your projects 👍

  • @alanbo859
    @alanbo859 Před 4 měsíci

    Hi, where is the relayer gassless script? i cant find it anywhere

  • @buzimamusic5545
    @buzimamusic5545 Před 9 měsíci

    How delete UI elements another wallets? From inspector it’s not working:(

  • @MuhammetEminAydinalp
    @MuhammetEminAydinalp Před 8 měsíci

    Can we make purchases with USDT from the game we made with Unity? So is there a compatible sdk etc between unity and usdt?

    • @thirdweb_
      @thirdweb_  Před 8 měsíci

      On the contract you can set payment to any ERC20 of your choice in 'Claim Conditions'

  • @humanbeing5535
    @humanbeing5535 Před 10 měsíci

    could you do this with for solana ?what would we have to change ?

    • @thirdweb_
      @thirdweb_  Před 9 měsíci

      This does not support Solana.

  • @s_screation3358
    @s_screation3358 Před 11 měsíci

    When I try to deploy smart contract, it ask for API secret key in terminal, what should I do ?

    • @thirdweb_
      @thirdweb_  Před 11 měsíci

      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

  • @ApexArtistX
    @ApexArtistX Před 6 měsíci

    Would it run on webgl build

    • @thirdweb_
      @thirdweb_  Před 6 měsíci

      Yes, Unity SDK work with webgl and mobile builds.

  • @burakgulrmak7085
    @burakgulrmak7085 Před 5 měsíci

    Hey, Is it still working?

    • @thirdweb_
      @thirdweb_  Před 5 měsíci

      Yes the Unity SDK is still working.

  • @ApexArtistX
    @ApexArtistX Před 5 měsíci

    Another ethereum chain only project ?

  • @zoomwarmetaverse64
    @zoomwarmetaverse64 Před 11 měsíci +1

    Ue4 please 😮

    • @thirdweb_
      @thirdweb_  Před 11 měsíci +1

      Unreal Engine SDK is in our pipeline of future projects 👍

  • @Oliver-ik7eu
    @Oliver-ik7eu Před 11 měsíci +1

    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 🤍

    • @thirdweb_
      @thirdweb_  Před 11 měsíci +1

      Unreal Engine SDK is in our pipeline of future projects. Currently only Unity SDK 👍

    • @ZakkFromSource
      @ZakkFromSource Před 11 měsíci

      Why do you believe that?

    • @Oliver-ik7eu
      @Oliver-ik7eu Před 11 měsíci +1

      @@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

    • @PavelBan
      @PavelBan Před 11 měsíci

      @@thirdweb_ If you release an SDK for UE5, then I would love to buy it on the marketplace, I think, like many other developers.

  • @user-oh9uq8it5n
    @user-oh9uq8it5n Před 2 měsíci

    Can't find the gassless transaction code in your description.