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
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,14 +24,18 @@ Head over to the [releases](https://github.com/thirdweb-dev/unity-sdk/releases)
24
24
25
25
Drag and drop the file into your project.
26
26
27
-
The package comes with a sample Scene showcasing the different capabilities of the SDK.
27
+
The package comes with a sample Scene and Prefab examples showcasing the different capabilities of the SDK.
28
+
29
+
Note: you may need to install the [Newtonsoft.Json](https://github.com/jilleJr/Newtonsoft.Json-for-Unity/wiki/Install-official-via-UPM) package manually if you experience importing errors on different Unity versions.
28
30
29
31
# Build
30
32
31
33
- Open your `Build settings`, select `WebGL` as the target platform.
32
34
- Open `Player settings` > `Resolution and Presentation` and under `WebGLTemplate` choose `Thirdweb`.
33
35
- Save and click `Build and Run` to test out your game in a browser.
34
36
37
+
If you're uploading your build, set `Compression Format` to `Disabled` in `Player Settings` > `Publishing Settings`.
38
+
35
39
Note that in order to communicate with the SDK, you need to `Build and run` your project so it runs in a browser context.
36
40
37
41
#### _**Interacting with the SDK within the Unity Editor is NOT supported.**_
@@ -103,6 +107,7 @@ nftPrefabScript.LoadNFT(nft);
103
107
[Events](https://github.com/thirdweb-dev/unity-sdk/blob/main/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_Events.cs) - Fetch and manipulate Contract Events with a simple API!
104
108
- Get specific events from any contract.
105
109
- Get all events from any contract.
110
+
- Event listener support with callback actions.
106
111
- Optional query filters.
107
112
108
113
See full documentation on the [thirdweb portal](https://portal.thirdweb.com).
0 commit comments