Hello. I'm having trouble importing a scene from blender. The screen is and enless loading loop and I'm getting this error in console: Uncaught TypeError: e.UniversalCamera is not a constructor
if (BABYLON.Engine.isSupported()) {
var canvas = document.getElementById("renderCanvas");
var engine = new BABYLON.Engine(canvas, true);
engine.enableOfflineSupport = false;
BABYLON.SceneLoader.Load("", "guy.babylon", engine, function (newScene) {
var camera = new BABYLO
Create your scene on your own: var myScene = new BABYLON.Scene(engine);
Use Append instead of Load: BABYLON.SceneLoader.Append("", "stage.babylon", myScene);
Import your Guy: BABYLON.SceneLoader.ImportMesh("guy", "", "guy.babylon", myScene);
Add your executeWhenReady: myScene.executeWhenReady(function(){ ...});
This is much straight forward than nested loads / callbacks. May not fix your problem, but will get rid of messy callbacks & scene scope issues. If "guy