0 votes

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 (12 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)
0 votes

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

by (64 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 (:

0 votes

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 (719 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 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 webmaster@godotengine.org with your username.