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
  • НаукаНаука

Комментарии • 28

  • @mohmedfakhry8918
    @mohmedfakhry8918 2 года назад +3

    _Config.Account isn't available for the new link in your description

    • @underscoredlabs7189
      @underscoredlabs7189  2 года назад

      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");

  • @imaginationrabbit
    @imaginationrabbit 3 года назад

    Awesome! Thank you for this!

  • @roshailtarar3327
    @roshailtarar3327 3 года назад +4

    Where can we get the unity sdk for this?

    • @underscoredlabs7189
      @underscoredlabs7189  3 года назад

      sorry for the delay. It's out now! github.com/ChainSafe/web3.unity

  • @thanghoang5204
    @thanghoang5204 2 года назад +1

    how can i connect directly to metamask instead of having to choose a wallet?

  • @hafizsaad5496
    @hafizsaad5496 2 года назад

    I gor errors
    Localhost says
    An error occurred running the unity content on this page see your browser javascrip

  • @phanbach1445
    @phanbach1445 2 года назад

    login to get wallet id, but the wallet address is returned to all lowercase letters. How to get the correct wallet id?

  • @sg3mes751
    @sg3mes751 2 года назад

    What if I want it connect only to MATIC network? how to do it?

    • @underscoredlabs7189
      @underscoredlabs7189  2 года назад

      It's in our documentation. for more detailed answers, feel free to join the discord gaming.chainsafe.io/

  • @rimzaasoft5938
    @rimzaasoft5938 3 года назад

    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

  • @farmUncleBank
    @farmUncleBank 2 года назад

    Can it work without build? i mean can we call metamask to show in editor?

  • @netgabo
    @netgabo 2 года назад

    The type or namespace name 'Newtonsoft' could not be found . Unity 2021.2.12f1

    • @underscoredlabs7189
      @underscoredlabs7189  2 года назад

      ah. I know the answer. feel free to join our discord for the answer gaming.chainsafe.io/

  • @LILLILLILLLLL
    @LILLILLILLLLL 3 года назад

    This is awesome.

  • @tokenamc9256
    @tokenamc9256 2 года назад

    Hello budy, how are you? How can I make the account balance appear on the screen as well?

  • @Leddo
    @Leddo 2 года назад

    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?

    • @underscoredlabs7189
      @underscoredlabs7189  2 года назад

      hey, for technical question, feel free to join the discord. We can help there

  • @user-ji4wc4ek7q
    @user-ji4wc4ek7q 2 года назад

    Hi. I have a one question.
    In the Script. the "_Config.Account" code error in the windows os. can you give me a solution?

    • @underscoredlabs7189
      @underscoredlabs7189  2 года назад

      This video is outdated. here's the update link gaming.chainsafe.io/
      more specific answer docs.gaming.chainsafe.io/#player-account

  • @tyebeach
    @tyebeach 3 года назад

    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.

    • @tyebeach
      @tyebeach 3 года назад

      oh I see now I need the sdk lol

    • @tyebeach
      @tyebeach 3 года назад

      The version in the Unity Asset store is a little bit different...do you have the updated one available?

    • @underscoredlabs7189
      @underscoredlabs7189  3 года назад

      sorry for the delay. It's out now github.com/ChainSafe/web3.unity

  • @mahmudhussinmohamed6455
    @mahmudhussinmohamed6455 3 года назад

    make collecting nfts game it will be wow

  • @metaverseb
    @metaverseb 2 года назад +1

    Build a metaverse bruhh