Why can't I see a node after opening a script

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

Once I open a script file, I cannot close it.
Whenever I open Godot, I can see 2d/3d scenes and make changes in them. Move objects around, see and change nodes in the editor etc. But right after I click on a script file and Script Editor opens, I cannot open a scene or see nodes in the editor. It gets stuck in the Script Editor. However I can chnage the script, and open different .gd files, but I cannot do anything else. In order to see a node or a scene again, I need to reopen Godot.
I can also run the project.
I am using Godot 3.5 installed on Steam.

I’m not quite sure I understand what you’re describing. Are you saying that some parts of the editor’s UI no longer work? For example:

  • Can you not click something in the scene tree? What happens if you try?
  • Does the 2D/3D/Script editor switcher at the top no longer work? What happens if you click it?

It doesn’t sound like the Godot is frozen or locked up, so I don’t really understand.

Screenshots or (better yet) a video or GIF might be helpful here.

jgodfrey | 2022-08-09 17:15

Oh my god I am so stupid haha. I was about to send a gif but thank you for pointing out the fact that you can change the editor from 2d to 3d to script with the three buttons up there. I believe in older versions you could just click on the node and the editor would switch but now you have to do it manually.
Sorry for the stupid question and thank you!

Cobaltiz | 2022-08-09 17:54

:bust_in_silhouette: Reply From: jgodfrey

Converting the above conversation to an Answer for forum housekeeping.

This was a misunderstanding of a basic editor workflow. Once a script is opened, the main window switches to the Script editor. To change back to one of the other main editor types (2D or 3D), just press the editor switcher shown at the top-center of the Godot editor window.

Update. This behavior (in 3.5) is controlled by:

Editor Settings | Text Editor | Navigation | Stay in script editor on node selected

jgodfrey | 2022-08-10 15:45

1 Like