Skip to content

Commit 4011dc5

Browse files
authored
Merge pull request godotengine#7831 from bmolyneaux/master-1
Add a note about tool script inheritance
2 parents 17b652d + 5b70a0a commit 4011dc5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tutorials/plugins/running_code_in_the_editor.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ Here is how a ``_process()`` function might look for you:
111111
case, when we remove the script, the node will keep its rotation. Be careful
112112
to avoid making unwanted modifications.
113113

114+
.. note::
115+
116+
Extending a ``@tool`` script does not automatically make the extending script
117+
a ``@tool``. Omitting ``@tool`` from the extending script will disable tool
118+
behavior from the super class. Therefore the extending script should also
119+
specify the ``@tool`` annotation.
120+
114121
Try it out
115122
-----------
116123

0 commit comments

Comments
 (0)