VisualScriptNode.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualScriptNode" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
  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. <argument index="0" name="port_idx" type="int" />
  15. <description>
  16. Returns the default value of a given port. The default value is used when nothing is connected to the port.
  17. </description>
  18. </method>
  19. <method name="get_visual_script" qualifiers="const">
  20. <return type="VisualScript" />
  21. <description>
  22. Returns the [VisualScript] instance the node is bound to.
  23. </description>
  24. </method>
  25. <method name="ports_changed_notify">
  26. <return type="void" />
  27. <description>
  28. Notify that the node's ports have changed. Usually used in conjunction with [VisualScriptCustomNode] .
  29. </description>
  30. </method>
  31. <method name="set_default_input_value">
  32. <return type="void" />
  33. <argument index="0" name="port_idx" type="int" />
  34. <argument index="1" name="value" type="Variant" />
  35. <description>
  36. Change the default value of a given port.
  37. </description>
  38. </method>
  39. </methods>
  40. <signals>
  41. <signal name="ports_changed">
  42. <description>
  43. Emitted when the available input/output ports are changed.
  44. </description>
  45. </signal>
  46. </signals>
  47. <constants>
  48. </constants>
  49. </class>