You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Learn how to build your Unity project with the thirdweb Unity SDK.",
7
+
});
8
+
9
+
# Build Instructions
10
+
11
+
## General
12
+
13
+
-**Build Settings:** Use `Smaller (faster) Builds` / `Shorter Build Time`.
14
+
-**Player Settings:** Use IL2CPP over Mono when available.
15
+
-**Stripping Level:** Set `Managed Stripping Level` to `Minimal` (`Player Settings` > `Other Settings` > `Optimization`). (Generally not a hard requirement unless using WalletConnect as a wallet provider option.)
16
+
17
+
## WebGL
18
+
19
+
-**WebGL Template:** None enforced, feel free to customize!
20
+
-**Compression Format:** Set to `Disabled` (`Player Settings` > `Publishing Settings`) for final builds.
21
+
-**Testing WebGL Social Login Locally:** Host the build or run it locally with `Cross-Origin-Opener-Policy` set to `same-origin-allow-popups`.
22
+
23
+
Example setup for testing In-App or Ecosystem Wallet Social Login locally:
console.log(`Server running on http://localhost:${port}`),
39
+
);
40
+
41
+
// run it with `node server.js`
42
+
```
43
+
44
+
No action needed for hosted builds.
45
+
46
+
## Mobile
47
+
48
+
-**EDM4U:** Comes with the package, resolves dependencies at runtime. Use `Force Resolve` from `Assets` > `External Dependency Manager` > `Android Resolver`.
49
+
-**Redirect Schemes:** Set custom schemes matching your bundle ID in `Plugins/AndroidManifest.xml` or equivalent to ensure OAuth redirects.
If you are wrapping the SDK, we recommend making your own Manager inspired by `ThirdwebManager.cs`, specifically for `ThirdwebClient` initialization.
19
22
20
23
## Configuration
21
24
22
25
Configure `ThirdwebManager` through the Unity Inspector window.
23
26
24
27
Below is a list of all the settings you can adjust.
25
28
26
-
### Client Settings
29
+
### Client
27
30
28
-
This section involves the basic settings to configure the SDK:
31
+
<DocImagesrc={thirdwebmanager_client} />
32
+
33
+
This section involves the required thirdweb client settings to configure the SDK:
29
34
30
35
-`Client ID`: Thirdweb [API Key](https://thirdweb.com/create-api-key). Used to access thirdweb services such as RPC, Storage, and Account Abstraction.
31
36
-`Bundle ID`: The bundle ID used to access thirdweb services from native platforms. Should be the same as the bundle ID in your Unity project, e.g., `com.companyname.gamename`.
37
+
-`Create API Key`: A link to create a new API key if you don't have one.
38
+
39
+
### Preferences
40
+
41
+
<DocImagesrc={thirdwebmanager_preferences} />
42
+
43
+
This section allows you to define the default preferences for the SDK:
44
+
32
45
-`Initialize On Awake`: Whether the SDK should initialize on awake or not. If not, you can call `ThirdwebManager.Instance.Initialize()` to initialize it manually.
33
46
-`Show Debug Logs`: Whether to show thirdweb SDK debug logs.
34
47
-`Opt Out Usage Analytics`: Whether to opt out of Connect usage analytics, such as the number of wallets connected to your game.
35
48
36
-
### WalletConnect Settings
49
+
### Misc
50
+
51
+
<DocImagesrc={thirdwebmanager_misc} />
52
+
53
+
This section allows you to customize the SDK's behavior:
54
+
55
+
-`Supported Chains`: A list of chains that the wallets should be able to connect to by default when using `WalletConnect` as a wallet provider.
56
+
-`Redirect Page HTML Override`: Raw HTML to override the default redirect page when connecting to `InAppWallet` or `EcosystemWallet` providers.
57
+
58
+
### Debug
59
+
60
+
<DocImagesrc={thirdwebmanager_debug} />
37
61
38
-
This section allows you to define WalletConnect-specific settings:
62
+
This section allows you to find helpful information:
39
63
40
-
-`Supported Chains`: A list of chains that the wallets should be able to connect to by default. Each chain is defined by a chain ID.
64
+
-`Log Active Wallet Info`: Logs the active (last connected) wallet's information such as its address.
65
+
-`Open Documentation`: Opens the thirdweb SDK documentation in your default browser.
41
66
42
67
## Interacting with the ThirdwebManager
43
68
44
69
Once your `ThirdwebManager` is set up, you can interact with it using the following methods:
45
70
46
-
### Initialize
71
+
### Initialize (If not set to `Initialize On Awake`)
0 commit comments