Yeah, they are project examples where we show the code and project layout. We are working to make it clearer which ones are tutorials and demo projects and will also long do more long form tutorials
myscript.prototype.initialize = function(){
this.object = this.app.root.findByName('Yeet');
this.object.button.on('mousedown',this.onclick,this);
};
myscript.prototype.onclick = function(){
var oldHierarchy = this.app.root.findByName ('Root');
// Get the path to the scene
var scene = this.app.scenes.find(sceneName);
// Load the scenes entity hierarchy
this.app.scenes.loadSceneHierarchy(scene.url, function () {
this.object.button.off('mousedown',this.onclick,this);
oldHierarchy.destroy();
});
};