mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user