0 votes

I got this message when I was trying to run a script in the editor.

modules/gdscript/gdscript.cpp:576 - Condition "!p_keep_state && has_instances" is true. Returned: ERR_ALREADY_IN_USE

This is the script that I'm trying to run, just for example, to understand how it works for further use

extends Button
func _ready():

When I reload the scene, the script works. And when I use the "EditorScript" extension and the "tool" keyword also works. But I need the above code to work when I press "control + shift + x".

In the documentation there is that when I "run the script in the editor, it runs" but it does not work for me, the editor is fine.

What am I doing wrong?

in Engine by (14 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.