Releases: thirdweb-dev/unity
v1.1.1
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.
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
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.
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
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
andoptions.storage
FundWallet()
has been moved fromsdk
tosdk.wallet
v1.0.0
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
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
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
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
What's Changed
- Cleanup project structure for better package importing by @0xFirekeeper
- Throw exceptions, let unity dev handle them by @0xFirekeeper
- Allow passing transaction overrides to custom write calls by @joaquim-verges
- Add ability to fetch any contract's balance by @joaquim-verges
- Fix underlying network changed error by @joaquim-verges
- Cleanup webgl template by @joaquim-verges
Full Changelog: v1.0.3-beta...v1.0.4-beta
v1.0.3-beta
- Fix using ERC20/721/1155 convenience wrappers for custom ABIs (thank you @0xFirekeeper for the contribution!)
v1.0.2-beta
- make
sdk.wallet.SwitchNetwork()
async so you can await until the user has changed networks - add pagination capabilities to
ERC721.GetAll()
andERC1155.GetAll()