Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // listen for socket.io events here
- io.on("loadAsset", (filename) => {
- // tell babylon to load assets
- BABYLON.SceneLoader.Load("/assets/", filename, engine, function (scene) {
- // do something with the scene
- });
- // - or -
- // tell babylon to append assets
- BABYLON.SceneLoader.Append("/assets/", filename, function (scene) {
- // do something with the scene
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement