Skip to content

Releases: thirdweb-dev/unity

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

v1.0.3-beta

27 Nov 08:52
Compare
Choose a tag to compare
  • Fix using ERC20/721/1155 convenience wrappers for custom ABIs (thank you @0xFirekeeper for the contribution!)

v1.0.2-beta

17 Nov 23:41
Compare
Choose a tag to compare
  • make sdk.wallet.SwitchNetwork() async so you can await until the user has changed networks
  • add pagination capabilities to ERC721.GetAll() and ERC1155.GetAll()