get scene name godot code example
Example 1: how to detect crrent scene godot
get_tree().get_current_scene().get_name()
Example 2: godot get scene root
get_tree().get_root()
or
owner
get_tree().get_current_scene().get_name()
get_tree().get_root()
or
owner