Function Script.isTool

Returns true if the script is a tool script. A tool script can run in the editor.

bool isTool() nothrow @nogc const;