Using BabylonJS for a uno-library control #21392
-
|
Hey, So, I added an Uno library project to the solution, downloaded the BabylonJS file, and included it as an embedded resource over the
I used I was able to include this control into a single-page Uno project for WebAssembly and Windows. However, no matter what I tried, 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? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
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.



This discussion was the topic of this livestream: https://youtu.be/_uAy1CvSkYo?t=534.
EmbeddedResourceis required for all additional.jsfiles in theWasmScriptsfolder, and it's required for now to import Babylonjs using an explicitrequirecall inside of an async function: