"New script..." didn't open the expected script file

Godot Version

4.4.1.stable

Question

When creating a new script directly on a node, the script file is created and saved, but the script file attached by the node is a built-in script, and the editor also opens the built-in script. In other words, the external script file created at the beginning does not participate in this process at all.


image
Both ways of creating the script produce the same result.


The “Built-in Script” option didn’t toggle on.


The script file is created, but the file opened is obviously not the corresponding script.

That’s really weird.

What happens if you attach an existing script to the node?

Manually attaching an existing script to a node is no problem.

That’s really odd.

I did some searching and I can’t seem to find a setting that would make that the default.

Have you tried wiping out the editor settings (not the project settings) and restarting Godot?

1 Like

Thanks, I have found the option that causes this issue:


When the Auto Reload and Parse Scripts on save option is off, this issue will happen.
I don’t know if it is expected…

1 Like