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.
Related questions
Per Visual Studio + JetBrains Rider integration with Unity, the EDITORATTACH protocol thatPer Unity Asset Store + Unreal Marketplace guidelines, a TOOL author's INSPECTOR should haPer Unity DOTS / Burst docs, a CUSTOM INSPECTOR using UI TOOLKIT (vs IMGUI) is preferred fPer Unreal docs (UPROPERTY + UFUNCTION), the UNREAL HEADER TOOL parses macros at build timPer Houdini docs, a DIGITAL ASSET (HDA) lets tools authors do which?Per Blender Python (bpy) docs, the bpy module structure groups data in which sub-namespacePer Unity Editor docs, the SERIALIZED OBJECT API is preferred over direct field access in Per Unreal docs, the SLATE framework is used to build which kind of UI inside Unreal Engin