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
<sub>✔️ Supported</sub> <sub>❌ Not Supported</sub> <sub>— Not Applicable</sub>
30
30
31
31
# Why Upgrade to v5?
32
32
33
-
Thirdweb's Unity SDK v5 leverages the robust [.NET SDK](https://portal.thirdweb.com/dotnet) for core functionality, providing a unified API and behavior across platforms.
33
+
Thirdweb's Unity SDK v5 leverages the robust [.NET SDK](https://portal.thirdweb.com/dotnet) for core functionality, providing a unified API and behavior across platforms.
34
34
35
35
## Key Improvements:
36
+
36
37
-**Unified API:** Say goodbye to the WebGL Bridge. Now, enjoy a consistent experience across WebGL, Desktop, and Mobile platforms.
37
38
-**Enhanced Composability:** Use our SDK anywhere without worrying about its state. APIs are chain agnostic, enabling seamless interaction with multiple chains.
38
39
-**Native Experience:** The .NET core provides a native, predictable experience, making upgrades less daunting.
39
-
-**Simplified `ThirdwebManager`:**
40
+
-**Ecosystem Wallets** The ultimate cross-platform wallet product, suitable for ecosystems wanting to grow out of their shell. Fast, shareable with third parties securely, non-custodial.
41
+
-**Simplified `ThirdwebManager`:**
40
42
-`ThirdwebManager.Instance.SDK.GetContract` is now `ThirdwebManager.Instance.GetContract`, returning `ThirdwebContract`.
41
43
-`ThirdwebManager.Instance.SDK.Wallet.Connect` is now `ThirdwebManager.Instance.ConnectWallet`, returning `IThirdwebWallet`.
42
44
- Handles multiple wallet connections and tracks the active wallet.
-**Cross-Platform Consistency:** No behavioral differences between platforms. What you see in the editor is what you get in WebGL, Standalone, and Mobile runtime platforms.
46
48
47
49
## Note:
48
-
To achieve full .NET core functionality for WebGL, we include a modified version of [WebGLThreadingPatcher](https://github.com/VolodymyrBS/WebGLThreadingPatcher), which makes async tasks blocking on the main thread. This is due to Unity's lack of support for C# multithreading in WebGL. This mainly affects InAppWallet initial creation (not session resuming).
50
+
51
+
To achieve full .NET core functionality for WebGL, we include a modified version of [WebGLThreadingPatcher](https://github.com/VolodymyrBS/WebGLThreadingPatcher) and have adapted our .NET core to work around any potential issues running raw .NET libraries in WebGL, though all tasks will be executed on one thread. This is required due to Unity's lack of support for C# multithreading in WebGL.
49
52
50
53
# Getting Started
51
54
52
55
1.**Download:** Head over to the [releases](https://github.com/thirdweb-dev/unity-sdk/releases) page and download the latest `.unitypackage` file.
53
56
2.**Explore:** Try out `Scene_Playground` to explore functionality and get onboarded.
54
-
3.**Learn:** Explore the [.NET SDK Documentation](https://portal.thirdweb.com/dotnet) to find full API references.
57
+
3.**Learn:** Explore the [Unity v5 SDK Docs](https://portal.thirdweb.com/unity/v5) and the [.NET SDK Docs](https://portal.thirdweb.com/dotnet) to find a full API reference.
55
58
56
59
**Notes:**
60
+
57
61
- Tested on Unity 2021.3+, 2022.3+, Unity 6 Preview. We recommend using 2022 LTS.
58
62
- Newtonsoft DLL included; deselect if already installed to avoid conflicts.
59
63
- If using .NET Framework and encountering `HttpUtility` errors, create `csc.rsp` with `-r:System.Web.dll` under `Assets`.
@@ -76,17 +80,19 @@ Example setup for testing In-App Wallet (Social Login) locally:
0 commit comments