Why is the scene not loading?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By roma

Why is the scene not loading? I created a main scene and another scene with blocks. The child object of the block tries to open the scene, but there is an error. I checked the path myself through the file system. When I call it not through a child object, everything is fine…

but there is an error

Please provide the full text of the error and the relevant code (properly formatted).

jgodfrey | 2023-01-04 19:56

I changed the code already, now I open the scene from another Node and everything is working

roma | 2023-01-04 20:40

:bust_in_silhouette: Reply From: SQBX

Maybe the child object is not able to change the scene; perhaps it was freed and you didn’t notice? Try adding some prints near the get_tree().change_scene() function to see if it gets called. You might need to change the scene from another node.