Skip to content

missing important points for public release #6

@Vinc3r

Description

@Vinc3r
  • 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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions