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: docs/using_dotnet_wasm_bindings.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,28 +24,30 @@ If you also have installed MeshLib in Nuget-for-Unity (which is a good idea to b
24
24
25
25
2. Click on `meshlib_vA.B.C.D_dotnet-wasm/MRDotNet2Static.dll`.
26
26
27
-
* On the right panel, uncheck `Any Platform`, and check`Include Platforms`->`WebGL`.
27
+
* On the right panel, uncheck `Any Platform`, and enable only`Include Platforms`->`WebGL`.
28
28
29
29
* Click `Apply`.
30
30
31
-
3. Open `meshlib_vA.B.C.D_dotnet-wasm/native/single/`.
31
+
3. Open `meshlib_vA.B.C.D_dotnet-wasm/native/singlethreaded/` or `.../multithreaded/`.
32
32
33
-
4. Select all files there (`.a` files).
33
+
This must match your Wasm build settings in Unity. If you enabled Wasm multithreading in Unity, use the multithreaded version of the files. If you don't know what you're doing, you probably have a single-threaded build.
34
34
35
-
* On the right panel, similarly uncheck `Any Platform`, and check `Include Platforms`->`WebGL`.
35
+
* Select all files there (`.a` files).
36
+
37
+
* On the right panel, similarly uncheck `Any Platform`, and enable only `Include Platforms`->`WebGL`.
36
38
37
39
* Click `Apply`.
38
40
39
-
5. Uncheck specific libraries that conflcit with Unity:
41
+
4. Uncheck specific libraries that conflcit with Unity:
40
42
41
43
* Select only `libblosc.a` and uncheck `WebGL`. Click `Apply`.
42
44
43
45
Unity links some libraries of its own into the Wasm build, which conflict with ours, and need to be disabled.
44
46
45
47
We still add them to the distribution for use outside of Unity.
46
48
47
-
## Different kinds of binaries
49
+
5. Uncheck the unused libraries:
48
50
49
-
Right now we only ship one set of C++ binaries (`meshlib_vA.B.C.D_dotnet-wasm/native/single`). Those are single-threaded.
51
+
* If you used `.../singlethreaded/` libraries, then disable the `.../multithreaded/` ones, or vice versa.
50
52
51
-
We plan to add more configurations (at least a multithreaded one), and possibly have versions built with different versions of Emscripten SDK (to match different versions of Unity).
53
+
* To disable them, open the respective directory, select all files there (`.a` files), uncheck `Any Platform` and uncheck all platforms.
0 commit comments