Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Syrlight |
How can I get the name of the current scene? I’m trying to use
“get_tree (). get_current_scene (). get_name ()”
but it is returning the error “Attempt to call function” get_current_scene “in base” null instance “on a null instance”
Sounds reasonable. Somehow get_current_scene
returned null, so there was no current scene? I’m not in front of Godot to try it.
duke_meister | 2018-07-09 23:53
It says get_tree
returns null, are you trying to do it before adding the scripted node/scene to the tree?
eons | 2018-07-10 02:48