Practice free →
Home › Per Godot docs (TOOL scripts), prefixing a GDScr…

Per Godot docs (TOOL scripts), prefixing a GDScript file with @tool causes which behaviour?

AThe script is compiled to native C++ on save
BThe script is uploaded automatically to a CI server
CThe script runs in the editor as well as at runtime
DThe script becomes private and cannot be called externally
Answer & Solution
Correct answer: C. The script runs in the editor as well as at runtime
Godot docs (Running code in the editor): @tool makes the script execute inside the editor (for editor previews + custom gizmos). Hot path for procedural-content tooling.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions