Unity SDK
Build Instructions
- Player Settings: Use IL2CPP over Mono when available.
- Build Settings: Use
Smaller (faster) Builds/Shorter Build Timefor IL2CPP Code Generation. - Stripping Level: Set
Managed Stripping LeveltoMinimal(Player Settings>Other Settings>Optimization). (Generally not a hard requirement unless using external wallets.) - Strip Engine Code: We recommend turning this off.
- WebGL Template: None enforced, feel free to customize!
- Compression Format: Set to
Disabled(Player Settings>Publishing Settings) for final builds. - Testing WebGL Social Login Locally: Host the build or run it locally with
Cross-Origin-Opener-Policyset tosame-origin-allow-popups.
Example setup for testing In-App or Ecosystem Wallet Social Login locally:
No action needed for hosted builds.
- EDM4U: Comes with the package, resolves dependencies at runtime. Use
Force ResolvefromAssets>External Dependency Manager>Android Resolver. - Redirect Schemes: Set custom schemes matching your bundle ID in
Plugins/Android/AndroidManifest.xmlor equivalent to ensure OAuth redirects if using social login.
If you notice issues with redirects on mobile, for instance hanging after selecting an account when logging in with Google, you did not setup OAuth properly. Best practice is to use a lowercase bundle id that is the same as your Unity project's application identifier, it must be present in the following places:
- Your
ThirdwebManagerprefabBundle IDfield. - Your
Plugins/AndroidManifest.xmlscheme field as mentioned above (it doesn't have to be our defaultAndroidManifest.xml, it can be in your custom one, just add the scheme). - Your thirdweb dashboard project settings as one of:
Bundle ID Allowlistfield (those automatically added to allowed redirect URIs).- In-App Wallet Configuration
Allowed redirect URIsfield.