Add a note about tool script inheritance

Related proposal: https://github.com/godotengine/godot-proposals/issues/754
This commit is contained in:
Ben
2023-08-21 19:12:58 -07:00
committed by GitHub
parent 0ea575930c
commit 0bd9b4842b
@@ -111,6 +111,13 @@ Here is how a ``_process()`` function might look for you:
case, when we remove the script, the node will keep its rotation. Be careful
to avoid making unwanted modifications.
.. note::
Extending a ``@tool`` script does not automatically make the extending script
a ``@tool``. Ommitting ``@tool`` from the extending script will disable tool
behavior from the super class. Therefore the extending script should also
specify the ``@tool`` annotation.
Try it out
-----------