Replies: 1 comment
-
Thanks for the report. Your repro does not have all the required files for us to help (it's missing a project). Have checked this how-to as well: https://platform.uno/docs/articles/interop/wasm-javascript-1.html ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
i try to get BabylonJS working in an Uno Platform library to build a multiplatform 3D viewer for WASM and WinUI3 (via WebView2)
So, I added an Uno library project to the solution, downloaded the BabylonJS file, and included it as an embedded resource over the
csproj
file (btw: if i added the file as an embeeded resource via the properties window in VS2022, i get following error):I used
BrowserHTMLElement
to execute the sample JS code from the BabylonJS homepage:I was able to include this control into a single-page Uno project for WebAssembly and Windows. However, no matter what I tried,
BABYLON
was always undefined.So I checked the Source tab in the developer tools, and it seems like the BabylonJS file was loaded:

Also, the JavaScript file was referenced on the page:

When I run everything locally in an HTML file, it works. I also tried loading BabylonJS via CDN, without success.
One might think it’s just not possible to do it—but I’ve already managed to display the BabylonViewer, just not with a library in between BJS Viewer
Does anyone have tips, hints, or even a solution for this?
Here’s the source:
BJSIntegration.zip
Beta Was this translation helpful? Give feedback.
All reactions