Editor Plugin get scene name

Godot Version

4.2.1

Question

var Scene = EditorInterface.get_edited_scene_root()

Scene.name → returns Node3D
Scene.get_tree().get_current_scene() → returns null

how to get the scene name? NOT Node3D which is the root of the scene, but the actual scene’s name??

I found the solution:

var Scene = EditorInterface.get_edited_scene_root()
Scene.scene_file_path.get_file()

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.