VisualScriptNode.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualScriptNode" inherits="Resource" version="3.2">
  3. <brief_description>
  4. A node which is part of a [VisualScript].
  5. </brief_description>
  6. <description>
  7. A node which is part of a [VisualScript]. Not to be confused with [Node], which is a part of a [SceneTree].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="get_default_input_value" qualifiers="const">
  13. <return type="Variant">
  14. </return>
  15. <argument index="0" name="port_idx" type="int">
  16. </argument>
  17. <description>
  18. Returns the default value of a given port. The default value is used when nothing is connected to the port.
  19. </description>
  20. </method>
  21. <method name="get_visual_script" qualifiers="const">
  22. <return type="VisualScript">
  23. </return>
  24. <description>
  25. Returns the [VisualScript] instance the node is bound to.
  26. </description>
  27. </method>
  28. <method name="ports_changed_notify">
  29. <return type="void">
  30. </return>
  31. <description>
  32. Notify that the node's ports have changed. Usually used in conjunction with [VisualScriptCustomNode] .
  33. </description>
  34. </method>
  35. <method name="set_default_input_value">
  36. <return type="void">
  37. </return>
  38. <argument index="0" name="port_idx" type="int">
  39. </argument>
  40. <argument index="1" name="value" type="Variant">
  41. </argument>
  42. <description>
  43. Change the default value of a given port.
  44. </description>
  45. </method>
  46. </methods>
  47. <signals>
  48. <signal name="ports_changed">
  49. <description>
  50. Emitted when the available input/output ports are changed.
  51. </description>
  52. </signal>
  53. </signals>
  54. <constants>
  55. </constants>
  56. </class>