Skip to content
Discussion options

You must be logged in to vote

This discussion was the topic of this livestream: https://youtu.be/_uAy1CvSkYo?t=534.

EmbeddedResource is required for all additional .js files in the WasmScripts folder, and it's required for now to import Babylonjs using an explicit require call inside of an async function:

// Load the Babylon.js library asynchronously
await new Promise((resolve) => {
    require([`babylonjs`], c => { window.BABYLON = c; resolve() });
});

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@VRage
Comment options

@jeromelaban
Comment options

@Jani-z
Comment options

@jeromelaban
Comment options

Answer selected by VRage
@VRage
Comment options

@jeromelaban
Comment options

@VRage
Comment options

@jeromelaban
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants