class_visualscripteditor.rst 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisualScriptEditor.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisualScriptEditor:
  5. VisualScriptEditor
  6. ==================
  7. **Inherits:** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Methods
  12. -------
  13. +------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | void | :ref:`add_custom_node<class_VisualScriptEditor_method_add_custom_node>` **(** :ref:`String<class_String>` name, :ref:`String<class_String>` category, :ref:`Script<class_Script>` script **)** |
  15. +------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`remove_custom_node<class_VisualScriptEditor_method_remove_custom_node>` **(** :ref:`String<class_String>` name, :ref:`String<class_String>` category **)** |
  17. +------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. Signals
  19. -------
  20. .. _class_VisualScriptEditor_signal_custom_nodes_updated:
  21. - **custom_nodes_updated** **(** **)**
  22. Emitted when a custom Visual Script node is added or removed.
  23. Method Descriptions
  24. -------------------
  25. .. _class_VisualScriptEditor_method_add_custom_node:
  26. - void **add_custom_node** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` category, :ref:`Script<class_Script>` script **)**
  27. Add a custom Visual Script node to the editor. It'll be placed under "Custom Nodes" with the ``category`` as the parameter.
  28. .. _class_VisualScriptEditor_method_remove_custom_node:
  29. - void **remove_custom_node** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` category **)**
  30. Remove a custom Visual Script node from the editor. Custom nodes already placed on scripts won't be removed.