You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/godot-js-scripts/code-in-editor.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,21 +4,24 @@
4
4
> **NOTE:** Read [Godot Docs](https://docs.godotengine.org/en/stable/tutorials/plugins/running_code_in_the_editor.html#what-is-tool) for more details about `@tool`.
5
5
6
6
7
-
If a GodotJS class is annotated with `@Tool()`, it'll be instantiated in the editor.
7
+
If a GodotJS class is annotated with `@bind.tool()`, it'll be instantiated in the editor.
8
8
Call `Engine.is_editor_hint()` in the script to check if it's running in the editor.
9
9
It's also possible to show warnings on a `Node` on `Scene` panel with `_get_configuration_warnings` defined. Here is a simple example:
0 commit comments