Hi,
My name is vijay.I am new to this forum and new to Babylonjs.
i got very much existed by the wonders we can create by using babylonjs so i started working on it.
Especially in this forum people were very kind and good in helping others.
My Issue is:
we can assign a babylon scene to a scene variable
ex: var createScene = function(){
// create a basic BJS Scene object
var scene = new BABYLON.Scene(engine);
...........
// return the created scene
return scene;
}
// call the createScene function
var scene = createScene();
But how can we assign a scene loaded from other exporters like unity to a variable scene.
The below is working perfectly but i want to assign the newscene to a variable scene like above.so that i can use scene in globally also.
BABYLON.SceneLoader.Load("", "scene.babylon", engine, function (newScene)
newScene.executeWhenReady(function () {
newScene.activeCamera.attachControl(canvas);
engine.runRenderLoop(function() {
newScene.render();
});
});
}
please help me and sry for my english.