The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

+1 vote

When I play the project (by pressing F5), Godot always run all the GDScripts from all Nodes.
Is it possible to run only a specific GDscript I am interested to test run?

I am asking this because when I just want to test run specific GDScript, I do need the entire project to run. I ended up having to wait till all other scripts (which I am not interested to test) to run finish before the script I am testing get its chance to run.

Godot version v3.3 Stable Official
in Engine by (13 points)

Just run only the scene the script is in instead of everything.

There is a small button top right (CMD+R) on Mac

But what if I have 2 nodes in the same Scene, is it possible to just run the script from one of the nodes?

3 Answers

0 votes

F5 runs the main scene.
F6 runs the current scene.

by (55 points)
–1 vote

Create a new scene, put your node that has the script attached there. And then press F6

by (63 points)

But what if I have 2 nodes in the same Scene? Is it possible to just run the script from one of the nodes if I don't want to add another Scene? Thanks for answering (:

+1 vote

Each node has a small eyeball (visibility toggle) in the scene tree. Just click on it to disable it before you run the scene.

by (810 points)
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.