Unity SDK
Thirdweb Manager
The ThirdwebManager
is a prefab that provides a convenient way to instantiate the ThirdwebClient, and contains helper functions to create contracts and wallets.
Add the prefab to your scene and the client will persist throughout your game's lifecycle, keeping track of your connected wallets.
It is entirely optional, and you can opt to use the .NET SDK directly if you prefer to do so.
If you are wrapping the SDK, we recommend making your own Manager inspired by ThirdwebManager.cs
that extends ThirdwebManagerBase.cs
, specifically for ThirdwebClient
initialization. Every method and property is virtual and can be overridden.
Configure ThirdwebManager
through the Unity Inspector window.
Below is a list of all the settings you can adjust.

This section configures the ThirdwebClient
instance that the manager creates at runtime:
Client ID
: Required thirdweb API Key. Without it,ThirdwebManager
refuses to initialize and logs an error.Bundle ID
: Optional identifier used for native redirect URIs. If left blank, the manager falls back toApplication.identifier
(orcom.<Company>.<Product>
when no identifier is set).Create API Key
: Opens the dashboard so you can generate a fresh API key.

Use these toggles to shape how the manager boots and reports information:
Initialize On Awake
: Automatically callsInitialize()
duringAwake
. Disable it if you need to delay initialization or swap credentials at runtime.Show Debug Logs
: MirrorsThirdwebDebug.IsEnabled
, enabling verbose diagnostics during development.Auto-Connect Last Wallet
: Persists the most recentWalletOptions
toPlayerPrefs
and reconnects on startup (including smart-wallet upgrades). Errors in this flow are swallowed and logged.

Fine-tune the runtime behaviour of authentication and networking here:
RPC Overrides
: Per-chain RPC endpoints stored asChainId
→URL
pairs. When populated, these replace the default thirdweb RPCs for the matching chains.OAuth Redirect Page HTML Override
: Multiline HTML snippet used by the in-app and ecosystem OAuth flows (including external browser handoffs). Provide custom markup only if you know the full redirect requirements.

Quick utilities exposed by the custom inspector:
Log Active Wallet Info
: Available in Play Mode; prints the currentActiveWallet
type and address to the Unity Console.Open Documentation
: Launches the hosted Unity SDK documentation in your default browser.
Once your ThirdwebManager
is set up, you can interact with it using the following methods:
Initialize (If not set to Initialize On Awake
)
Initializes the SDK with the settings specified in the Unity Inspector.
Connects a wallet based on the specified WalletOptions
and returns an IThirdwebWallet
instance that can be used to interact with the blockchain.
Upgrades the specified wallet to a SmartWallet
, returning a SmartWallet
instance.
Returns the last connected wallet as an IThirdwebWallet
instance, or null
if no wallet is connected.
Returns a ThirdwebContract instance that can be used to interact with a smart contract.
Links another InAppWallet
or EcosystemWallet
account to the main wallet and returns a list of linked accounts, allowing you to login with either authentication method later.
The helper modal that is displayed when using the ThirdwebManager
's ConnectWallet
function with an auth method that requires an OTP, such as Email or Phone login.
It can be replaced with a custom modal that extends AbstractOTPVerifyModal
to customize the OTP verification process.
Explore the .NET SDK to learn more about interacting with smart contracts, wallets, storage, RPC, account abstraction, and more.