Jump to content

solved: Adding a scene via this.scene.add('name') causes error on start


s4m_ur4i
 Share

Recommended Posts

Uncaught TypeError: Cannot read property 'sys' of undefined

When I add the scene to the games config. It works perfectly.
But when I add a scene via a running the current scene to start it a bit later, I get the error.
The error is caused by adding a Scene via the Scene Manager (code below). This scene does exist with the gives name etc. doublechecked.

Does anyone know what I am doing wrong?

// adds a scene but throwing the error: sys of undefined.
this.scene.add('name');

// adds a scene but throwing the error: sys of undefined too
this.scene.add(ClassName);

cheers,

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...