ok i think you fixed the playground at some point…
Thanks
I have not been able to reproduce the bug
Here is as close as i could get, to what i do in my scene.
So i went back to mine, and started debugging again. This bug seems to only happen when i dispose of my main game scene. Even if i dont switch scenes. So im really confused at what could be happening. Since i stop rendering the scene then i try disposing the scene, but get that error.
“Cannot set property ‘_sceneRootNodesIndex’ of undefined”
So far my only hunches are that it could be something to do with using assets loaded from another scene. Like in this post:
any ideas on how i should go about diagnosing what the problem could be?
Ive console logged all the way and end up getting the error on the scene.dispose(), but that works in the playground. So maybe its something im doing to my scene before i dispose? Im not sure… Back to debugging