-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
- how to create an asset through patches
[{
exec: function () {
new BABYLON.FreeCamera("camDev", BABYLON.Vector3.Zero(), _r.scene);
}
},
{
"camDev": {
"name": "camDev",
"fov": 1.5,
"speed": 0.2,
"minZ": 0.01,
"maxZ": 1000
}
}
]- how to download file into a scene
_r.downloadScene({
scene : "scene.babylon",
patch : [],
ready : function() {
}
});
_r.downloadScene(options)
options =
loadingScreen? : boolean;
ready? : Function;
progress? : Function;
error? : Function;
scene? : string;
assets? : string;
patch? : any;
addAllToScene? : boolean;
tip: set addAllToScene to true, use ready function to know when download is done- change activeCamera on the fly
Metadata
Metadata
Assignees
Labels
No labels