[SOLVED] Scene not found

Hello, I just fork the following project

and run it, it displays “Scene not found”…
I have nothing to do…
how to active this template, thank you so much

That was from when you had to reference scenes by asset id which gets broken when you fork

See the comment in the code:

ChangingScenes.prototype.changeScenes = function() {
    // Get a reference to the current root object
    var oldHierarchy = this.app.root.findByName ('Root');
    // Load the new scene. The scene ID is found by loading the scene in the editor and 
    // taking the number from the URL
    // e.g. If the URL when Scene 1 is loaded is: https://playcanvas.com/editor/scene/475211
    // The ID is the number on the end (475211)
    this.loadScene (this.sceneId, function () {
        // Once the new scene has been loaded, destroy the old one
        oldHierarchy.destroy ();
1 Like

Thank you :smiley:, it work fine :smiley: