class_visualscriptyieldsignal.rst 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the VisualScriptYieldSignal.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualScriptYieldSignal:
  6. VisualScriptYieldSignal
  7. =======================
  8. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. A Visual Script node yielding for a signal.
  10. Description
  11. -----------
  12. ``VisualScriptYieldSignal`` will pause the function execution until the provided signal is emitted.
  13. Properties
  14. ----------
  15. +--------------------------------------------------------+--------------------------------------------------------------------+--------------+
  16. | :ref:`String<class_String>` | :ref:`base_type<class_VisualScriptYieldSignal_property_base_type>` | ``"Object"`` |
  17. +--------------------------------------------------------+--------------------------------------------------------------------+--------------+
  18. | :ref:`CallMode<enum_VisualScriptYieldSignal_CallMode>` | :ref:`call_mode<class_VisualScriptYieldSignal_property_call_mode>` | ``0`` |
  19. +--------------------------------------------------------+--------------------------------------------------------------------+--------------+
  20. | :ref:`NodePath<class_NodePath>` | :ref:`node_path<class_VisualScriptYieldSignal_property_node_path>` | |
  21. +--------------------------------------------------------+--------------------------------------------------------------------+--------------+
  22. | :ref:`String<class_String>` | :ref:`signal<class_VisualScriptYieldSignal_property_signal>` | ``""`` |
  23. +--------------------------------------------------------+--------------------------------------------------------------------+--------------+
  24. Enumerations
  25. ------------
  26. .. _enum_VisualScriptYieldSignal_CallMode:
  27. .. _class_VisualScriptYieldSignal_constant_CALL_MODE_SELF:
  28. .. _class_VisualScriptYieldSignal_constant_CALL_MODE_NODE_PATH:
  29. .. _class_VisualScriptYieldSignal_constant_CALL_MODE_INSTANCE:
  30. enum **CallMode**:
  31. - **CALL_MODE_SELF** = **0** --- A signal from this :ref:`Object<class_Object>` will be used.
  32. - **CALL_MODE_NODE_PATH** = **1** --- A signal from the given :ref:`Node<class_Node>` in the scene tree will be used.
  33. - **CALL_MODE_INSTANCE** = **2** --- A signal from an instanced node with the given type will be used.
  34. Property Descriptions
  35. ---------------------
  36. .. _class_VisualScriptYieldSignal_property_base_type:
  37. - :ref:`String<class_String>` **base_type**
  38. +-----------+----------------------+
  39. | *Default* | ``"Object"`` |
  40. +-----------+----------------------+
  41. | *Setter* | set_base_type(value) |
  42. +-----------+----------------------+
  43. | *Getter* | get_base_type() |
  44. +-----------+----------------------+
  45. The base type to be used when :ref:`call_mode<class_VisualScriptYieldSignal_property_call_mode>` is set to :ref:`CALL_MODE_INSTANCE<class_VisualScriptYieldSignal_constant_CALL_MODE_INSTANCE>`.
  46. ----
  47. .. _class_VisualScriptYieldSignal_property_call_mode:
  48. - :ref:`CallMode<enum_VisualScriptYieldSignal_CallMode>` **call_mode**
  49. +-----------+----------------------+
  50. | *Default* | ``0`` |
  51. +-----------+----------------------+
  52. | *Setter* | set_call_mode(value) |
  53. +-----------+----------------------+
  54. | *Getter* | get_call_mode() |
  55. +-----------+----------------------+
  56. ``call_mode`` determines the target object to wait for the signal emission. See :ref:`CallMode<enum_VisualScriptYieldSignal_CallMode>` for options.
  57. ----
  58. .. _class_VisualScriptYieldSignal_property_node_path:
  59. - :ref:`NodePath<class_NodePath>` **node_path**
  60. +----------+----------------------+
  61. | *Setter* | set_base_path(value) |
  62. +----------+----------------------+
  63. | *Getter* | get_base_path() |
  64. +----------+----------------------+
  65. The node path to use when :ref:`call_mode<class_VisualScriptYieldSignal_property_call_mode>` is set to :ref:`CALL_MODE_NODE_PATH<class_VisualScriptYieldSignal_constant_CALL_MODE_NODE_PATH>`.
  66. ----
  67. .. _class_VisualScriptYieldSignal_property_signal:
  68. - :ref:`String<class_String>` **signal**
  69. +-----------+-------------------+
  70. | *Default* | ``""`` |
  71. +-----------+-------------------+
  72. | *Setter* | set_signal(value) |
  73. +-----------+-------------------+
  74. | *Getter* | get_signal() |
  75. +-----------+-------------------+
  76. The signal name to be waited for.
  77. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  78. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  79. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`