VisualScriptCustomNodes.xml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualScriptCustomNodes" inherits="Object" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
  3. <brief_description>
  4. Manages custom nodes for the Visual Script editor.
  5. </brief_description>
  6. <description>
  7. This singleton can be used to manage (i.e., add or remove) custom nodes for the Visual Script editor.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="add_custom_node">
  13. <return type="void" />
  14. <param index="0" name="name" type="String" />
  15. <param index="1" name="category" type="String" />
  16. <param index="2" name="script" type="Script" />
  17. <description>
  18. Add a custom Visual Script node to the editor. It'll be placed under "Custom Nodes" with the [code]category[/code] as the parameter.
  19. </description>
  20. </method>
  21. <method name="remove_custom_node">
  22. <return type="void" />
  23. <param index="0" name="name" type="String" />
  24. <param index="1" name="category" type="String" />
  25. <description>
  26. Remove a custom Visual Script node from the editor. Custom nodes already placed on scripts won't be removed.
  27. </description>
  28. </method>
  29. </methods>
  30. <signals>
  31. <signal name="custom_nodes_updated">
  32. <description>
  33. Emitted when a custom Visual Script node is added or removed.
  34. </description>
  35. </signal>
  36. </signals>
  37. </class>