Skip to content

Releases: thirdweb-dev/unity-sdk

v1.1.3

15 Feb 22:59
5194f68
Compare
Choose a tag to compare

NEW - Events Prefab, Reading, Writing and Misc Examples!

This update comes with additional minimalistic prefab/script examples and SDK updates including the addition of Events, Event Listeners and updated Thirdweb Auth support. Try out our new example scene!

Screen Shot 2023-02-15 at 2 57 45 PM

Events - Fetch and manipulate Contract Events with a simple API!

  • Get specific events from any contract.
  • Get all events from any contract.
  • Event listener support with callback actions.
  • Optional query filters.

Reading - Reading from a contract!

  • Fetch ERC20 Token(s).
  • Fetch ERC721 NFT(s).
  • Fetch ERC1155 NFT(s).
  • Fetch Marketplace Listing(s).

Writing - Writing to a contract!

  • Mint ERC20 Token(s).
  • Mint ERC721 NFT(s).
  • Mint ERC1155 NFT(s).
  • Buy Marketplace Listing(s).

Miscellaneous - More examples!

  • Get (Native) Balance.
  • Custom Contract Read/Write Calls.
  • Authentication.
  • Deployment.

v1.1.2

03 Feb 18:26
193bad8
Compare
Choose a tag to compare

Connect Wallet Prefab Visual Update + Wallet Balance + Network switching

Connect_Wallet_Upgrade

  • The Connect Wallet prefab now optionally supports network switching - you can activate/deactivate this functionality and related UI from the Inspector.
  • It also now shows the user balance for the selected chain
  • This also comes with a visual upgrade and new icons
  • You can now set your supported networks from the ThirdwebManager prefab in your scene
  • Other QOL changes like using an enum for Chains

Build the Examples/Scenes demo to try it out!

v1.1.1

02 Feb 03:05
a4b2dfe
Compare
Choose a tag to compare

NEW - NFT and NFT Loader Prefabs!

Introducing the Prefab_NFT and Prefab_NFTLoader prefabs - instantiate an NFT and load it through script with the former, or drag and drop a fully functional and customizable ScrollView (Grid Layout) and set it up to display whatever NFTs you want from the Inspector!

Changelog:

Prefab_NFT
Displays an NFT by calling LoadNFT through script

  • Instantiate this Prefab
  • Get its Prefab_NFT component
  • Call the LoadNFT function and pass it your NFT struct to display your fetched NFT's images automatically
  • Customize the prefab to add text/decorations and customize LoadNFT to use your NFT's metadata if you want to populate that text
NFT nft = await contract.ERC721.Get(0);
Prefab_NFT nftPrefabScript = Instantiate(nftPrefab);
nftPrefabScript.LoadNFT(nft);

Prefab_NFTLoader
Standalone Drag & Drop grid/scroll view of NFTs you ask it to display

  • Go to the prefab's Settings in the Inspector
  • Load specific NFTs with token ID
  • Load a specific range of NFTs
  • Load NFTs owned by a specific wallet
  • Or any combination of the above - they will all be displayed automatically in a grid view with vertical scroll!
  • Customize the prefab's ScrollView and Content gameobjects if you want your content to behave differently.

Screen Shot 2023-02-01 at 6 56 56 PM

Prefab_ConnectWallet

  • Removed custom logging function for simplicity
  • References ThirdwebManager to get the SDK now

ThirdwebManager
Minimal prefab added into the scene for convenience and cross-script reference of the SDK when using multiple prefabs.

  • Drag and drop into your scene and input the chain you'd like it to use from the Inspector
  • Reference the SDK in your scripts with ThirdwebManager.Instance.SDK
  • Get the chain ID if needed with ThirdwebManager.Instance.GetChainID()

v1.1.0

31 Jan 22:40
4558274
Compare
Choose a tag to compare

NEW - Connect Wallet Prefab

Introducing the first prefab of the SDK: a fully functional Connect Wallet button. Lets you choose the wallet providers options for your users, which chain id to connect to and easy to customize to make it your own.

Screen Shot 2023-01-31 at 2 38 35 PM

Expect more features and more prefabs coming soon!

Structure change:

The package has been re-organized into Core / Examples.

Core: all the scripts and most barebones demo scene
Example: Prefabs and more fully featured demo scenes

v1.0.1

13 Dec 00:45
Compare
Choose a tag to compare

NEW Magic.link connection support! (alpha)

  • Connect the user's magic.link wallet with email or social logins
  • Interact with that wallet like a regular wallet using the SDK functions

First, you'll need to pass your Magic.link developer API key in the SDK options like so:

var sdk = new ThirdwebSDK("goerli", new ThirdwebSDK.Options
        {
            wallet = new ThirdwebSDK.WalletOptions
            {
                appName = "Thirdweb SDK Demo",
                extras = new Dictionary<string, object>
                {
                    {"apiKey", "your_api_key"},
                    // ... any other magic.link options here
                }
            }
        });

Then you can initiate the magic.link login flow like the other wallets:

string address = await sdk.wallet.Connect(new WalletConnection
    {
        provider = WalletProvider.MagicAuth,
        chainId = 1 // ChainId to connect to
    });

API changes

  • SDK options now have separate options.wallet and options.storage
  • FundWallet() has been moved from sdk to sdk.wallet

v1.0.0

06 Dec 07:38
Compare
Choose a tag to compare

After extensive Beta testing, the thirdweb Unity SDK v1.0.0 is now officially stable!

Thank you for all of you who gave feedback during the beta phase.

Full documentation, guides and examples available on our portal

Happy building!

v1.0.7-beta

03 Dec 02:21
18e8928
Compare
Choose a tag to compare

What's Changed

  • Initial fund wallet functionality by @joaquim-verges
  • Fix return type for ERC20.Claim()

Full Changelog: v1.0.6-beta...v1.0.7-beta

v1.0.6-beta

01 Dec 01:47
Compare
Choose a tag to compare

What's Changed

  • Support for connecting via Coinbase wallet (mobile + extension) and WalletConnect (mobile + desktop) by @joaquim-verges
  • Allow overriding ipfsGatewayUrl in SDK Options by @joaquim-verges
  • ToString overrides on ALL types by @0xFirekeeper
  • Remove newline after inner class toString by @0xFirekeeper
  • isApproved -> setApprovalForAll string fix ERC721/ERC1155 libs by @0xFirekeeper
  • Fix return type of allowance ERC20 calls by @joaquim-verges
  • Switch to more robust JS bridge infrastructure by @jnsdls

Full Changelog: v1.0.5-beta...v1.0.6-beta

v1.0.5-beta

29 Nov 04:48
Compare
Choose a tag to compare

What's Changed

  • Add Pack contract by @joaquim-verges
  • Eth <> Wei + ERC20 Formatting functions for Utils.cs by @0xFirekeeper
  • Fixes for SetAllowance and BigInt parsing

Full Changelog: v1.0.4-beta...v1.0.5-beta

v1.0.4-beta

29 Nov 01:23
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.3-beta...v1.0.4-beta