Skip to content

Commit 2e331be

Browse files
committed
docs
1 parent 8de86d1 commit 2e331be

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

Assets/Plugins/Android/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
<action android:name="android.intent.action.VIEW" />
1717
<category android:name="android.intent.category.DEFAULT" />
1818
<category android:name="android.intent.category.BROWSABLE" />
19+
<!-- Set your bundle id here -->
20+
<!-- Replace 'com.thirdweb.unitysdk' with your desired scheme -->
1921
<data android:scheme="com.thirdweb.unitysdk" />
2022
</intent-filter>
2123

README.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,27 @@ Experience our multichain game demo leveraging In-App and Smart Wallets for seam
1818

1919
**Build games for WebGL, Desktop, and Mobile using 1000+ supported chains, with various login options!**
2020

21-
| Wallet Provider | WebGL | Desktop | Mobile |
22-
| --------------------------------------------- | :-------: | :-------: | :-------: |
23-
| **In-App Wallet** (Email, Phone, Socials) | ✔️ | ✔️ | ✔️ |
24-
| **Private Key Wallet** (Guest Mode) | ✔️ | ✔️ | ✔️ |
25-
| **Wallet Connect Wallet** (400+ Wallets) | ✔️ | ✔️ | ✔️ |
26-
| **MetaMask Wallet** (Browser Extension) | ✔️ | | |
27-
| **Smart Wallet** (Account Abstraction) | ✔️ | ✔️ | ✔️ |
21+
| Wallet Provider | WebGL | Desktop | Mobile |
22+
| ----------------------------------------- | :---: | :-----: | :----: |
23+
| **In-App Wallet** (Email, Phone, Socials) | ✔️ | ✔️ | ✔️ |
24+
| **Private Key Wallet** (Guest Mode) | ✔️ | ✔️ | ✔️ |
25+
| **Wallet Connect Wallet** (400+ Wallets) | ✔️ | ✔️ | ✔️ |
26+
| **MetaMask Wallet** (Browser Extension) | ✔️ || |
27+
| **Smart Wallet** (Account Abstraction) | ✔️ | ✔️ | ✔️ |
2828

2929
<sub>✔️ Supported</sub> &nbsp; <sub>❌ Not Supported</sub> &nbsp; <sub>— Not Applicable</sub>
3030

3131
# Why Upgrade to v5?
3232

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.
3434

3535
## Key Improvements:
36+
3637
- **Unified API:** Say goodbye to the WebGL Bridge. Now, enjoy a consistent experience across WebGL, Desktop, and Mobile platforms.
3738
- **Enhanced Composability:** Use our SDK anywhere without worrying about its state. APIs are chain agnostic, enabling seamless interaction with multiple chains.
3839
- **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`:**
4042
- `ThirdwebManager.Instance.SDK.GetContract` is now `ThirdwebManager.Instance.GetContract`, returning `ThirdwebContract`.
4143
- `ThirdwebManager.Instance.SDK.Wallet.Connect` is now `ThirdwebManager.Instance.ConnectWallet`, returning `IThirdwebWallet`.
4244
- Handles multiple wallet connections and tracks the active wallet.
@@ -45,15 +47,17 @@ Thirdweb's Unity SDK v5 leverages the robust [.NET SDK](https://portal.thirdweb.
4547
- **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.
4648

4749
## 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.
4952

5053
# Getting Started
5154

5255
1. **Download:** Head over to the [releases](https://github.com/thirdweb-dev/unity-sdk/releases) page and download the latest `.unitypackage` file.
5356
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.
5558

5659
**Notes:**
60+
5761
- Tested on Unity 2021.3+, 2022.3+, Unity 6 Preview. We recommend using 2022 LTS.
5862
- Newtonsoft DLL included; deselect if already installed to avoid conflicts.
5963
- 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:
7680

7781
```javascript
7882
// YourWebGLOutputFolder/server.js
79-
const express = require('express');
83+
const express = require("express");
8084
const app = express();
8185
const port = 8000;
8286

8387
app.use((req, res, next) => {
84-
res.header('Cross-Origin-Opener-Policy', 'same-origin-allow-popups');
88+
res.header("Cross-Origin-Opener-Policy", "same-origin-allow-popups");
8589
next();
8690
});
8791

88-
app.use(express.static('.'));
89-
app.listen(port, () => console.log(`Server running on http://localhost:${port}`));
92+
app.use(express.static("."));
93+
app.listen(port, () =>
94+
console.log(`Server running on http://localhost:${port}`)
95+
);
9096

9197
// run it with `node server.js`
9298
```

0 commit comments

Comments
 (0)