Document that addons/ class_name is only visible if part of a plugin

See https://github.com/godotengine/godot/issues/30048.
This commit is contained in:
Hugo Locurcio
2021-02-22 20:08:44 +01:00
parent 3239b4b5fc
commit 4b6c9c4c61

View File

@@ -1052,6 +1052,13 @@ will then appear with its new icon in the editor::
.. image:: img/class_name_editor_register_example.png
.. warning::
If the script is located in the ``res://addons/`` directory, ``class_name``
will only cause the node to show up in the **Create New Node** dialog if
the script is part of an *enabled* editor plugin. See :ref:`doc_making_plugins`
for more information.
Here's a class file example:
::
@@ -1599,7 +1606,7 @@ If there is more than one argument, ``yield`` returns an array containing
the arguments::
signal done(input, processed)
func process_input(input):
print("Processing initialized")
yield(get_tree(), "idle_frame")